diff options
author | Rob Clark <[email protected]> | 2019-06-12 12:03:58 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-06-15 07:33:04 -0700 |
commit | 4c75d62ce863bf397d9db3c94ce7eb12f7aa9250 (patch) | |
tree | d400dcfd08881a329ab440caabe7787d0f5087d4 /src/gallium/include/pipe/p_format.h | |
parent | 1d75f525891efd6483404da6b4ae70784179db9c (diff) |
gallium: add z24s8_as_r8g8b8a8 format
This maps to a special format that recent generations of adreno have,
for blitting z24s8. Conceptually it is similar to doing Z and/or S
blits by pretending it is r8g8b8a8 (with appropriate writemask). But
it differs when bandwidth compression is used, as z24 is a different
type from r8g8b8.
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Reviewed-by: Kristian H. Kristensen <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_format.h')
-rw-r--r-- | src/gallium/include/pipe/p_format.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h index a4401658f5f..42908e9a720 100644 --- a/src/gallium/include/pipe/p_format.h +++ b/src/gallium/include/pipe/p_format.h @@ -407,6 +407,8 @@ enum pipe_format { PIPE_FORMAT_ATC_RGBA_EXPLICIT = 318, PIPE_FORMAT_ATC_RGBA_INTERPOLATED = 319, + PIPE_FORMAT_Z24_UNORM_S8_UINT_AS_R8G8B8A8 = 320, + PIPE_FORMAT_COUNT }; |