OSDN Git Service

i965: Fix gl_DrawID in the vec4 backend.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 13 Feb 2016 05:24:58 +0000 (21:24 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 14 Feb 2016 21:24:07 +0000 (13:24 -0800)
commit8122d21d1507b4d6d351299f88fff0c645c0b4ff
tree76231d1b91e914bd3d0f4cae9930d72a4f96fd23
parent816c987b67e3c65e17687b84f4575aaf61e9580a
i965: Fix gl_DrawID in the vec4 backend.

brw_draw_upload.c uploads VertexID/InstanceID first, then DrawID.
So we need to assign the attribute mapping in that order as well.

Fixes the following Pigit tests with the vec4 backend:
- arb_shader_draw_parameters-drawid vertexid
- arb_shader_draw_parameters-drawid-indirect basevertex

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/brw_vec4.cpp