i965: Delete previous workaround for textureGrad with shadow samplers.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Jul 2012 04:25:37 +0000 (21:25 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 12 Jul 2012 17:20:26 +0000 (10:20 -0700)
commitb546aebae922214dced54c75e6f64830aabd5d1c
treec7b9d5d7da95c0e1a75b94108018b164be112742
parentb0c8d3be73ea777e1fd5870c344afb1d31921411
i965: Delete previous workaround for textureGrad with shadow samplers.

It had many problems:
- The shadow comparison was done post-filtering.
- It required state-dependent recompiles whenever the comparison
  function changed.
- It didn't even work: many cases hit assertion failures.
- I never implemented it for the VS.

The new lowering pass which converts textureGrad to textureLod by
computing the LOD value works much better.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_fs.cpp
src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
src/mesa/drivers/dri/i965/brw_program.h
src/mesa/drivers/dri/i965/brw_wm.c