OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be5153f
)
svga: check for null fs pointer in update_samplers()
author
Brian Paul
<brianp@vmware.com>
Thu, 28 Dec 2017 16:16:44 +0000
(09:16 -0700)
committer
Brian Paul
<brianp@vmware.com>
Thu, 28 Dec 2017 16:49:31 +0000
(09:49 -0700)
This can happen when there's no active fragment shader, such as
when using transform feedback. This wasn't hit by any Piglit test
but is hit by Daniel Rákos' Nature demo. VMware bug
2026189
.
Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/gallium/drivers/svga/svga_state_sampler.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_state_sampler.c
b/src/gallium/drivers/svga/svga_state_sampler.c
index
9bd0d53
..
11f36e3
100644
(file)
--- a/
src/gallium/drivers/svga/svga_state_sampler.c
+++ b/
src/gallium/drivers/svga/svga_state_sampler.c
@@
-399,7
+399,7
@@
update_samplers(struct svga_context *svga, unsigned dirty )
* for this texture unit, don't enable shadow compare in
* the texture sampler state.
*/
- if (fs
->fs_shadow_compare_units & (1 << i
)) {
+ if (fs
&& (fs->fs_shadow_compare_units & (1 << i)
)) {
fs_shadow = true;
}
}