On Tuesday 07 June 2011 11:43:17 Henri Verbeet wrote:
On 7 June 2011 11:16, Stefan Dösinger stefandoesinger@gmx.at wrote:
On Tuesday 07 June 2011 11:06:25 Henri Verbeet wrote:
- if (gl_info->supported[ARB_SHADER_TEXTURE_LOD] &&
reg_maps->usestexldd)
Why is reg_maps->usestexldd not true in pixel shaders?
Well, it may be, but the instruction we care about here is texldl. I could of course add a usestexldl condition,
True, my bad. In that sense the usestexldd condition was broken anyway.
but afaik there isn't any reason not to enable ARB_shader_texture_lod if it's available.
Yep, at least not unless there's some driver bug that triggers a slowdown like with enabling GL_NV_fragment_program* in ARB shaders. I guess my nightly tests will tell us tomorrow.
Fwiw, I don't expect ARB_shader_texture_lod to cost anything at least on Nvidia because their GLSL compiler enables NVfp anyway and it provides support for TXL in any case.