diff options
author | Nicolai Hähnle <[email protected]> | 2016-06-29 21:56:42 +0200 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2016-07-06 10:43:43 +0200 |
commit | dd651261530e2d885d150755c9521e8f6e97c851 (patch) | |
tree | 10c9bdf1058c5229b08b57f26510b56d9c246f93 /src/gallium/drivers/r600/r600_pipe.h | |
parent | 065eeb79f706d10340044447cc5821e64063ea9e (diff) |
gallium/radeon: add can_sample_z/s flags for textures
v2: adjust r600_init_color_surface as well
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 0dd538bcebe..e1b2aeddf01 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -926,14 +926,6 @@ static inline unsigned r600_pack_float_12p4(float x) x >= 4096 ? 0xffff : x * 16; } -/* Return if the depth format can be read without the DB->CB copy on r6xx-r7xx. */ -static inline bool r600_can_read_depth(struct r600_texture *rtex) -{ - return rtex->resource.b.b.nr_samples <= 1 && - (rtex->resource.b.b.format == PIPE_FORMAT_Z16_UNORM || - rtex->resource.b.b.format == PIPE_FORMAT_Z32_FLOAT); -} - static inline unsigned r600_get_flush_flags(enum r600_coherency coher) { switch (coher) { |