summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_control_flow.c
diff options
context:
space:
mode:
authorMatt Turner <[email protected]>2015-10-19 10:51:42 -0700
committerMatt Turner <[email protected]>2015-10-22 10:16:52 -0700
commitcfb67c3d0656927270302ef17d2d9de065ec44fe (patch)
treeaeef3f66c6fea08871cb05631a70d974bcb1bc68 /src/glsl/nir/nir_control_flow.c
parent65ffaf2740e40cc155b55fae81166181a9b616a2 (diff)
i965/vec4: Initialize LOD to 0.0f for textureQueryLevels() and texture().
We implement textureQueryLevels (which takes no arguments, save the sampler) using the resinfo message (which takes an argument of LOD). Without initializing it, we'd generate a MOV from the null register to load the LOD argument. Essentially the same logic applies to texture. A vertex shader cannot compute derivatives and so cannot produce an LOD, so TXL with an LOD of 0.0 is used. Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_control_flow.c')
0 files changed, 0 insertions, 0 deletions