diff options
author | Grigori Goronzy <[email protected]> | 2013-09-11 01:41:39 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2013-09-20 20:35:55 +0200 |
commit | 56d9a397aa2dbee6b12e1bbe56be39f426e1e34d (patch) | |
tree | c28441081a058cd1f8ed479ca27597cca3ead867 /src/gallium/drivers/r600/r600_resource.h | |
parent | 419cd5f2a24b87d31a2fd9dd9b7d0025b4f5515c (diff) |
r600g: add support for separately allocated CMASKs
v2: check for NULL cbufs
Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_resource.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_resource.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_resource.h b/src/gallium/drivers/r600/r600_resource.h index 92b9cc50b98..92e57b6d1b4 100644 --- a/src/gallium/drivers/r600/r600_resource.h +++ b/src/gallium/drivers/r600/r600_resource.h @@ -71,6 +71,7 @@ struct r600_texture { /* use htile only for first level */ float depth_clear; + struct r600_resource *cmask; unsigned color_clear_value[2]; }; @@ -152,6 +153,8 @@ void r600_texture_get_fmask_info(struct r600_screen *rscreen, void r600_texture_get_cmask_info(struct r600_screen *rscreen, struct r600_texture *rtex, struct r600_cmask_info *out); +void r600_texture_init_cmask(struct r600_screen *rscreen, + struct r600_texture *rtex); struct pipe_resource *r600_texture_create(struct pipe_screen *screen, const struct pipe_resource *templ); struct pipe_resource *r600_texture_from_handle(struct pipe_screen *screen, |