Mesa (llvm-context): llvmpipe: mark all state dirty after gc
Brian Paul
brianp at kemper.freedesktop.org
Fri Nov 5 14:15:19 UTC 2010
Module: Mesa
Branch: llvm-context
Commit: b0ddddce4160b4927589375312074496e2eb9e75
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b0ddddce4160b4927589375312074496e2eb9e75
Author: Brian Paul <brianp at vmware.com>
Date: Fri Nov 5 08:00:13 2010 -0600
llvmpipe: mark all state dirty after gc
---
src/gallium/drivers/llvmpipe/lp_context.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_context.c b/src/gallium/drivers/llvmpipe/lp_context.c
index 2036a71..2de20d6 100644
--- a/src/gallium/drivers/llvmpipe/lp_context.c
+++ b/src/gallium/drivers/llvmpipe/lp_context.c
@@ -83,6 +83,9 @@ garbage_collect_callback(void *cb_data)
/* This type will be recreated upon demand */
lp->jit_context_ptr_type = NULL;
+
+ /* mark all state as dirty to ensure new shaders are jit'd, etc. */
+ lp->dirty = ~0;
}
More information about the mesa-commit
mailing list