Mesa (lp-binning): llvmpipe: Reset the pointer to stored jit context.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Mon Oct 19 12:18:57 UTC 2009
Module: Mesa
Branch: lp-binning
Commit: 301c1494b27ad92ff1237909f9c98c1660be8fc1
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=301c1494b27ad92ff1237909f9c98c1660be8fc1
Author: José Fonseca <jfonseca at vmware.com>
Date: Mon Oct 19 13:14:33 2009 +0100
llvmpipe: Reset the pointer to stored jit context.
---
src/gallium/drivers/llvmpipe/lp_setup.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_setup.c b/src/gallium/drivers/llvmpipe/lp_setup.c
index da5a68c..c0f516e 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup.c
@@ -101,10 +101,10 @@ static void reset_context( struct setup_context *setup )
SETUP_DEBUG("%s\n", __FUNCTION__);
- /* Reset derived data */
- pipe_buffer_reference(&setup->constants.current, NULL);
+ /* Reset derived state */
setup->constants.stored_size = 0;
setup->constants.stored_data = NULL;
+ setup->fs.stored = NULL;
setup->dirty = ~0;
/* Free all but last binner command lists:
@@ -634,6 +634,8 @@ lp_setup_destroy( struct setup_context *setup )
reset_context( setup );
+ pipe_buffer_reference(&setup->constants.current, NULL);
+
for (i = 0; i < TILES_X; i++)
for (j = 0; j < TILES_Y; j++)
FREE(setup->tile[i][j].head);
@@ -671,6 +673,8 @@ lp_setup_create( struct pipe_screen *screen )
setup->line = first_line;
setup->point = first_point;
+ setup->dirty = ~0;
+
return setup;
fail:
More information about the mesa-commit
mailing list