diff options
author | Mathias Fröhlich <[email protected]> | 2018-12-11 18:45:43 +0100 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-03-10 14:28:37 +0000 |
commit | e62b82a693e6835dce809e924b4a2335486659d4 (patch) | |
tree | 4bae338f7952f0ca989da1ecdf879653729db0c6 /src/mesa/drivers/dri/i965 | |
parent | cf929823bf8253388a863fa495844380060f68fb (diff) |
i965: Make use of the vertex format functions in i965.
v2: Style fixes.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Signed-off-by: Mathias Fröhlich <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/308>
Diffstat (limited to 'src/mesa/drivers/dri/i965')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_draw.c b/src/mesa/drivers/dri/i965/brw_draw.c index 152012a6c16..815dc2bc969 100644 --- a/src/mesa/drivers/dri/i965/brw_draw.c +++ b/src/mesa/drivers/dri/i965/brw_draw.c @@ -347,9 +347,8 @@ brw_merge_inputs(struct brw_context *brw) unsigned vaomask = vs_inputs & _mesa_draw_array_bits(ctx); while (vaomask) { const gl_vert_attrib i = u_bit_scan(&vaomask); - const struct gl_array_attributes *glattrib = - _mesa_draw_array_attrib(vao, i); - const uint8_t wa_flags = get_wa_flags(&glattrib->Format); + const uint8_t wa_flags = + get_wa_flags(_mesa_draw_array_format(vao, i)); if (brw->vb.attrib_wa_flags[i] != wa_flags) { brw->vb.attrib_wa_flags[i] = wa_flags; @@ -360,9 +359,8 @@ brw_merge_inputs(struct brw_context *brw) unsigned currmask = vs_inputs & _mesa_draw_current_bits(ctx); while (currmask) { const gl_vert_attrib i = u_bit_scan(&currmask); - const struct gl_array_attributes *glattrib = - _mesa_draw_current_attrib(ctx, i); - const uint8_t wa_flags = get_wa_flags(&glattrib->Format); + const uint8_t wa_flags = + get_wa_flags(_mesa_draw_current_format(ctx, i)); if (brw->vb.attrib_wa_flags[i] != wa_flags) { brw->vb.attrib_wa_flags[i] = wa_flags; |