i965/fs: Fix texelFetchOffset()
authorEric Anholt <eric@anholt.net>
Tue, 17 Apr 2012 01:43:48 +0000 (18:43 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Apr 2012 17:00:54 +0000 (10:00 -0700)
commitf41ecade7b458c02d504158b522acb2231585040
tree5708efb76f08591b770438f131bb7a7ddcda072f
parent587c221a29fe01e24c69952a7a9b0034f7652e4e
i965/fs: Fix texelFetchOffset()

It appears that when using 'ld' with the offset bits, address bounds
checking happens before the offset is applied, so parts of the drawing
in piglit texelFetchOffset() with a negative texcoord go black.
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp