OSDN Git Service

i965: Fix fragcoord_w on gen6 with 16-wide.
authorEric Anholt <eric@anholt.net>
Fri, 29 Apr 2011 19:17:02 +0000 (12:17 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 29 Apr 2011 19:25:21 +0000 (12:25 -0700)
commit03b2e0fcdf92c76411a957c3ea898233fb4ce1be
tree19d84897a5bb223ba781769f54fe418e298d26f6
parent8c1637a4c233fd02a57dee1e38ac87012a04c4c5
i965: Fix fragcoord_w on gen6 with 16-wide.

The payload regs can go all the way up to register 60+, so just give
them 8 bits to be addressed by instead of 3-4 (which made source_w_reg
of 8 end up 0).  There's no reason to aggressively pack these fields,
as they are just used as compiler information, where being easier to
access is probably more important than shaving a byte or two off of
the structure.

Fixes piglit fragcoord_w.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36649
src/mesa/drivers/dri/i965/brw_wm.h