diff options
author | Marek Olšák <[email protected]> | 2019-01-23 11:34:48 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2019-02-06 11:17:21 -0500 |
commit | 7d4c935654f7792f99ff0c45507e43ec557f0266 (patch) | |
tree | 197fc1fb8598040748acbe998ad4ade4d2820975 /src/gallium/drivers/radeonsi/si_pipe.h | |
parent | 3361305f570505e0131c570041779496d0b9c663 (diff) |
radeonsi: initialize textures using DCC to black when possible
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_pipe.h')
-rw-r--r-- | src/gallium/drivers/radeonsi/si_pipe.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_pipe.h b/src/gallium/drivers/radeonsi/si_pipe.h index ff36b3272b4..1af3c5ff9b7 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.h +++ b/src/gallium/drivers/radeonsi/si_pipe.h @@ -111,6 +111,16 @@ #define SI_RESOURCE_FLAG_32BIT (PIPE_RESOURCE_FLAG_DRV_PRIV << 6) #define SI_RESOURCE_FLAG_SO_FILLED_SIZE (PIPE_RESOURCE_FLAG_DRV_PRIV << 7) +enum si_clear_code +{ + DCC_CLEAR_COLOR_0000 = 0x00000000, + DCC_CLEAR_COLOR_0001 = 0x40404040, + DCC_CLEAR_COLOR_1110 = 0x80808080, + DCC_CLEAR_COLOR_1111 = 0xC0C0C0C0, + DCC_CLEAR_COLOR_REG = 0x20202020, + DCC_UNCOMPRESSED = 0xFFFFFFFF, +}; + /* Debug flags. */ enum { /* Shader logging options: */ |