[PATCH 2/5] wined3d: Just enable ARB_shader_texture_lod if it's available.
stefandoesinger at gmx.at
Tue Jun 7 06:48:20 CDT 2011
On Tuesday 07 June 2011 11:43:17 Henri Verbeet wrote:
> On 7 June 2011 11:16, Stefan Dösinger <stefandoesinger at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 836 bytes
Desc: This is a digitally signed message part.
More information about the wine-devel