[Mesa-dev] [PATCH 0/8]: Enabling GL_ARB_shader_texture_lod, take 2

Kenneth Graunke kenneth at whitecape.org
Fri Jun 17 20:01:20 PDT 2011


Hey!

Version 2 of my GL_ARB_shader_texture_lod patches.  Patches 1, 5, and 8
are the same; unfortunately, the rest changed.

I added ten new piglit tests for shadow2DGradARB---essentially, copy and
paste of glsl-fs-shadow2D-0*.shader_test, but using dPdx and dPdy.  The
tenth one combines them all into one mega-test, which makes sure that the
shader actually is recompiled based on the depth comparison function.

Unfortunately, I discovered that sample_d_c doesn't actually exist on
Ivybridge (contrary to the documentation), so I've backed out that part
and rely on faking (just like gen4-6).

Tested on GM45, Ironlake, Sandybridge, and Ivybridge.  All shadow2DGradARB
tests pass.  arb_shader_texture_lod-texgrad fails with one pixel probe
but looks visually correct.  (Again, the thinking is this is a dPdy bug.)

Unfortunately, tex-miplevel-selection-texture2DLod* fail on all platforms.
I haven't looked into why (and am not sure I'll be able to get to it soon).

I'd really love to get this in before 7.11, so unless there are any
objections, I'll plan on pushing it on Sunday.

Thanks!
--Kenneth



More information about the mesa-dev mailing list