diff options
author | Marek Olšák <[email protected]> | 2012-08-26 22:38:35 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2012-08-30 19:43:56 +0200 |
commit | 78354011f99c4103345f8f32e10b0b4b884ebdaf (patch) | |
tree | 0686495ce07db652b88bed43a4f421e4077d5545 /src/gallium/drivers/r600/r600_buffer.c | |
parent | 863e2c85b9c59d717ad786c709638d948ff0f38e (diff) |
r600g: implement color resolve for r600
The blend state is different and the resolve single-sample buffer must have
FMASK and CMASK enabled. I decided to have one CMASK and one FMASK
per context instead of per resource.
There are new FMASK and CMASK allocation helpers and a new buffer_create
helper for that.
Diffstat (limited to 'src/gallium/drivers/r600/r600_buffer.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_buffer.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gallium/drivers/r600/r600_buffer.c b/src/gallium/drivers/r600/r600_buffer.c index 907ac9691ba..88d67dfaf49 100644 --- a/src/gallium/drivers/r600/r600_buffer.c +++ b/src/gallium/drivers/r600/r600_buffer.c @@ -237,12 +237,11 @@ bool r600_init_resource(struct r600_screen *rscreen, } struct pipe_resource *r600_buffer_create(struct pipe_screen *screen, - const struct pipe_resource *templ) + const struct pipe_resource *templ, + unsigned alignment) { struct r600_screen *rscreen = (struct r600_screen*)screen; struct r600_resource *rbuffer; - /* XXX We probably want a different alignment for buffers and textures. */ - unsigned alignment = 4096; rbuffer = MALLOC_STRUCT(r600_resource); |