OSDN Git Service

i965/gs: Fix EndPrimitive on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 30 Jan 2014 00:31:31 +0000 (16:31 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 11 Feb 2014 23:25:03 +0000 (15:25 -0800)
commit4dd1002518505f65e112dc9be1a68593724a86f2
treedf5e123ce91e2c026e9d8e8f4b88e1de2ea127fd
parent5ebfac8d723daa3d7f1e20cbfba0000c284f05e3
i965/gs: Fix EndPrimitive on Broadwell.

My earlier patch (i965: Reserve space for "Vertex Count" in GS outputs.)
incremented Global Offset for most URB writes to make room for the new
"Vertex Count" field, but failed to shift the URB writes used for
writing control bits.

Confusingly, Global Offset must be incremented by 2 here, rather than 1.
The URB writes we use for actual data are HWord writes, which treat
Global Offset as a 256-bit offset.  These are OWord writes, so it's
treated as a 128-bit offset instead.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp