Author: Marek Olšák <email@example.com>
mesa: shrink VERT_ATTRIB bitfields to 32 bits
There are only 32 vertex attribs now.
Reviewed-by: Ian Romanick <firstname.lastname@example.org>
Sample test results:
FAILURE. Test case: dmat2x3. Draw - invalid results.
Test case (dmat2x3) failed.
Fails on all platforms that support the test
Author: Juan A. Suarez Romero <email@example.com>
Date: Wed Nov 29 12:09:47 2017 +0100
mesa: deal with vs_inputs as 64-bit unsigned integer
Commit 78942e ("mesa: shrink VERT_ATTRIB bitfields to 32 bits") uses
vs_prog_data->vs_inputs as if it were a 32-bit unsigned integer.
But actually it is a 64-bit integer, and as such it is used in other
parts of Mesa code. It is worth to note that bits from the entire range
are used, and not only 32-bits. This is due our implementation for
handling 64-bit dual-slot input attributes, which requires to use a
larger bitfield to manage them.
This commit reverts the changes done in brw_draw_upload.c, keeping the
rest of the changes.
This fixes the following tests:
Fixes: 78942e ("mesa: shrink VERT_ATTRIB bitfields to 32 bits")
CC: Marek Olšák <firstname.lastname@example.org>
CC: Ian Romanick <email@example.com>
Reviewed-by: Marek Olšák <firstname.lastname@example.org>
Reviewed-by: Iago Toral Quiroga <email@example.com>
Signed-off-by: Juan A. Suarez Romero <firstname.lastname@example.org>
src/mesa/drivers/dri/i965/brw_draw_upload.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)