diff options
author | Marek Olšák <[email protected]> | 2014-02-09 19:34:59 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2014-02-25 16:08:15 +0100 |
commit | 6b4e03216a75ed20fb3fa0eb963a6cd5617469d7 (patch) | |
tree | 3a399947f134e3b6c81a8a2d68b6238c5391c827 /src/gallium/drivers/r600/r600_pipe.h | |
parent | ec266d06d03c51c92aed2ca481cc6c06bc070b69 (diff) |
r600g: remove r600_resource.h
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/r600/r600_pipe.h')
-rw-r--r-- | src/gallium/drivers/r600/r600_pipe.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_pipe.h b/src/gallium/drivers/r600/r600_pipe.h index 83b0e4f9ce1..ad2b97216e0 100644 --- a/src/gallium/drivers/r600/r600_pipe.h +++ b/src/gallium/drivers/r600/r600_pipe.h @@ -31,7 +31,6 @@ #include "r600_llvm.h" #include "r600_public.h" -#include "r600_resource.h" #include "util/u_blitter.h" #include "util/u_suballoc.h" @@ -843,4 +842,12 @@ 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); +} + #endif |