summaryrefslogtreecommitdiffstats
path: root/docs/debugging.html
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2013-02-12 21:51:16 -0800
committerKenneth Graunke <[email protected]>2013-05-01 10:42:51 -0700
commite2f887b243fd34ef82e4782a968baca485b07b15 (patch)
treefd8e6d35f9f91dec26d27429bf95ff1de9f8d3ed /docs/debugging.html
parent163b4da8745e02257fff7ad506bc830c55dab7e7 (diff)
i965: Lower textureGrad() for samplerCubeShadow.
According to the Ivybridge PRM, Volume 4 Part 1, page 130, in the section for the sample_d message: "The r coordinate contains the faceid, and the r gradients are ignored by hardware." This doesn't match GLSL, which provides gradients for all of the coordinates. So we would need to do some math to compute the face ID before using sample_d. We currently don't have any code to do that. However, we do have a lowering pass that converts textureGrad to textureLod, which solves this problem. Since textureGrad on three components is sufficiently obscure, it's not a performance path. For now, only handle samplerCubeShadow; we need tests for samplerCube and samplerCubeArray. Fixes es3conform's shadow_comparison_frag test on Haswell. NOTE: This is a candidate for stable branches. Signed-off-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'docs/debugging.html')
0 files changed, 0 insertions, 0 deletions