diff options
author | Luca Barbieri <[email protected]> | 2010-02-23 16:48:22 +0100 |
---|---|---|
committer | Luca Barbieri <[email protected]> | 2010-04-12 12:21:25 +0200 |
commit | 330925d9118120863f5e76e01fdfa1a1f44be2b1 (patch) | |
tree | feb63f5237b7d1cc2cd8ff8a0f3f90774c030cb9 /src/gallium/drivers/nvfx/nvfx_context.c | |
parent | 26e40448becb07e292d269dc4d8fbc56caebba3c (diff) |
nvfx: rework validation logic to use code and avoid stateobjs
This makes the code faster due to the lack of indirect calls and also
makes it much easier to understand what is actually going on.
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_context.c')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_context.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_context.c b/src/gallium/drivers/nvfx/nvfx_context.c index e7b1486d496..1faa0af31fb 100644 --- a/src/gallium/drivers/nvfx/nvfx_context.c +++ b/src/gallium/drivers/nvfx/nvfx_context.c @@ -30,12 +30,6 @@ static void nvfx_destroy(struct pipe_context *pipe) { struct nvfx_context *nvfx = nvfx_context(pipe); - unsigned i; - - for (i = 0; i < NVFX_STATE_MAX; i++) { - if (nvfx->state.hw[i]) - so_ref(NULL, &nvfx->state.hw[i]); - } if (nvfx->draw) draw_destroy(nvfx->draw); |