i965: Lower textureGrad() with samplerCubeShadow.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 16 Jan 2013 19:14:14 +0000 (11:14 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 30 Jan 2013 17:46:00 +0000 (09:46 -0800)
commite4793701647c9b4112c7789926a564f796d4faeb
treedb1b747066b52e8022f12ff595e61953d2f0b63b
parent42df904f88a3515bf8bea5c1228380714c9146fb
i965: Lower textureGrad() with samplerCubeShadow.

We weren't lowering textureGrad() with samplerCubeShadow because I
couldn't figure out the LOD calculations.  It turns out they're easy:
you just have to use 1 for the depth.  This causes it to pass
oglconform's four tests.

(cherry picked from commit 613e64060c2bc58c3920c3c6ff77291642ba0e23)

When cherry-picking this to stable, I've reordered this before the
Haswell commit that would have introduced a regression.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Tested-by: Anuj Phogat <anuj.phogat@gmail.com> (original)
Tested-by: Ian Romanick <idr@freedesktop.org> (original)
src/mesa/drivers/dri/i965/brw_lower_texture_gradients.cpp