diff options
author | Brian Paul <brianp@vmware.com> | 2010-12-09 18:37:59 -0700 |
---|---|---|
committer | Brian Paul <brianp@vmware.com> | 2010-12-09 18:41:22 -0700 |
commit | becc4bb90c46f754018ac596460e6c6a650d399c (patch) | |
tree | 5cbf6ee7acf18438d2e93e7cdb0ca6656ccba9cf /configs/linux-fbdev | |
parent | 70ca06445445060c75b55b6c5531973b7b2a1bf0 (diff) |
draw/llvm: don't flush in vs_llvm_delete()
Fixes piglit glx-shader-sharing crash.
When shaders are shared by multiple contexts, the shader's draw context
pointer may point to a previously destroyed context. Dereferencing the
context pointer will lead to a crash.
In this case, simply removing the flushing code avoids the crash (the
exec and sse shader paths don't flush here either).
There's a deeper issue here, however, that needs examination. Shaders
should not keep pointers to contexts since contexts might get destroyed
at any time.
NOTE: This is a candidate for the 7.10 branch (after this has been
tested for a while).
Diffstat (limited to 'configs/linux-fbdev')
0 files changed, 0 insertions, 0 deletions