diff options
author | Lucas Stach <[email protected]> | 2012-01-10 12:41:02 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-01-15 07:37:41 +0100 |
commit | f428ae6f72f8a403bd3d83b88c41e9b78c23bbe3 (patch) | |
tree | 2ca844c9251732455e88be6313c2a8762532cc7d /src/gallium/drivers/nvfx/nvfx_surface.c | |
parent | 7f918683c4f92d2f5fc1765da4b404f569cec003 (diff) |
nvfx: rework state_fb code to get rid of render temps
This commit rewrites a lot of the state_fb code to support
rendering to targets not aligned to 64 byte.
This allows us to drop the render temporaries as unaligned
targets are the only use-case where they are really needed. The
temporaries code was used for a lot of things more, but apparently
those also work without temps.
There is one regression in piglit fbo-clear-formats, but this will
be fixed with the use of real hardware clears and doesn't matter in
practice as no real application tries to scissor clear a 2x2 pixel
render target.
Signed-off-by: Lucas Stach <[email protected]>
Diffstat (limited to 'src/gallium/drivers/nvfx/nvfx_surface.c')
-rw-r--r-- | src/gallium/drivers/nvfx/nvfx_surface.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_surface.c b/src/gallium/drivers/nvfx/nvfx_surface.c index cac3fcaabc0..73a5260ac0f 100644 --- a/src/gallium/drivers/nvfx/nvfx_surface.c +++ b/src/gallium/drivers/nvfx/nvfx_surface.c @@ -428,6 +428,8 @@ nvfx_surface_copy_temp(struct pipe_context* pipe, struct pipe_surface* surf, int void nvfx_surface_create_temp(struct pipe_context* pipe, struct pipe_surface* surf) { + assert (0); + struct nvfx_surface* ns = (struct nvfx_surface*)surf; struct pipe_resource template; memset(&template, 0, sizeof(struct pipe_resource)); |