summaryrefslogtreecommitdiffstats
path: root/src/mesa/x86-64
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-05-01 09:30:32 -0600
committerIan Romanick <[email protected]>2009-06-22 15:15:19 -0700
commit00e203fe17cbf2127abc422c785cf9fad3232adb (patch)
treef925c2f859536a7c87f088191050c964276594d1 /src/mesa/x86-64
parentabfd56c24c821e0dec233348ef01aef5b57f2763 (diff)
mesa: create/use a fallback texture when bound texture is incomplete
When a GLSL sampler reads from an incomplete texture it should return (0,0,0,1). Instead of jumping through hoops in all the drivers to make this happen, just create/install a fallback texture with those texel values. Fixes piglit/fp-incomplete-tex on i965 and more importantly, fixes some GPU lockups when trying to sample from missing surfaces. If a binding table entry is NULL, it seems that sampling sometimes works, but not always (lockup). Todo: create a fallback texture for each type of texture target? (cherry picked from commit 3f25219c7bf0f090502489928f0f018e62c4f6cf)
Diffstat (limited to 'src/mesa/x86-64')
0 files changed, 0 insertions, 0 deletions