From 330925d9118120863f5e76e01fdfa1a1f44be2b1 Mon Sep 17 00:00:00 2001 From: Luca Barbieri Date: Tue, 23 Feb 2010 16:48:22 +0100 Subject: 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. --- src/gallium/drivers/nvfx/nvfx_vbo.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'src/gallium/drivers/nvfx/nvfx_vbo.c') diff --git a/src/gallium/drivers/nvfx/nvfx_vbo.c b/src/gallium/drivers/nvfx/nvfx_vbo.c index 49f0cba968..74de3a799e 100644 --- a/src/gallium/drivers/nvfx/nvfx_vbo.c +++ b/src/gallium/drivers/nvfx/nvfx_vbo.c @@ -575,17 +575,9 @@ nvfx_vbo_validate(struct nvfx_context *nvfx) } nvfx->hw_vtxelt_nr = nvfx->vtxelt->num_elements; - return FALSE; + return TRUE; } -struct nvfx_state_entry nvfx_state_vbo = { - .validate = nvfx_vbo_validate, - .dirty = { - .pipe = NVFX_NEW_ARRAYS, - .hw = 0, - } -}; - void nvfx_vbo_relocate(struct nvfx_context *nvfx) { -- cgit v1.2.3