Mesa (master): gallium: add SINT formats to have exact counterparts to SNORM formats

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 22 17:22:21 UTC 2019


Module: Mesa
Branch: master
Commit: 3ee240890ce2d474ce96712972d2e06e363341f4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ee240890ce2d474ce96712972d2e06e363341f4

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Tue Jan 15 12:32:27 2019 -0500

gallium: add SINT formats to have exact counterparts to SNORM formats

for radeonsi

---

 src/gallium/auxiliary/util/u_format.csv | 4 ++++
 src/gallium/include/pipe/p_format.h     | 5 +++++
 2 files changed, 9 insertions(+)

diff --git a/src/gallium/auxiliary/util/u_format.csv b/src/gallium/auxiliary/util/u_format.csv
index 911ac07d32..a7303c1ff7 100644
--- a/src/gallium/auxiliary/util/u_format.csv
+++ b/src/gallium/auxiliary/util/u_format.csv
@@ -434,13 +434,17 @@ PIPE_FORMAT_B5G6R5_SRGB             , plain, 1, 1, un5 , un6 , un5 ,     , zyx1,
 
 PIPE_FORMAT_A8L8_UNORM            , plain, 1, 1, un8 , un8 , , , yyyx, rgb
 PIPE_FORMAT_A8L8_SNORM            , plain, 1, 1, sn8 , sn8 , , , yyyx, rgb
+PIPE_FORMAT_A8L8_SINT             , plain, 1, 1, sp8 , sp8 , , , yyyx, rgb
 PIPE_FORMAT_A8L8_SRGB             , plain, 1, 1, un8 , un8 , , , yyyx, srgb
 PIPE_FORMAT_A16L16_UNORM          , plain, 1, 1, un16, un16, , , yyyx, rgb
 
 PIPE_FORMAT_G8R8_UNORM            , plain, 1, 1, un8 , un8 , , , yx01, rgb
 PIPE_FORMAT_G8R8_SNORM            , plain, 1, 1, sn8 , sn8 , , , yx01, rgb
+PIPE_FORMAT_G8R8_SINT             , plain, 1, 1, sp8 , sp8 , , , yx01, rgb
 PIPE_FORMAT_G16R16_UNORM          , plain, 1, 1, un16, un16, , , yx01, rgb
 PIPE_FORMAT_G16R16_SNORM          , plain, 1, 1, sn16, sn16, , , yx01, rgb
 
 PIPE_FORMAT_A8B8G8R8_SNORM        , plain, 1, 1, sn8 , sn8 , sn8 , sn8 , wzyx, rgb
+PIPE_FORMAT_A8B8G8R8_SINT         , plain, 1, 1, sp8 , sp8 , sp8 , sp8 , wzyx, rgb
 PIPE_FORMAT_X8B8G8R8_SNORM        , plain, 1, 1, x8,   sn8,  sn8,  sn8,  wzy1, rgb
+PIPE_FORMAT_X8B8G8R8_SINT         , plain, 1, 1, x8,   sp8,  sp8,  sp8,  wzy1, rgb
diff --git a/src/gallium/include/pipe/p_format.h b/src/gallium/include/pipe/p_format.h
index 6fb91222f2..c81fc67b8e 100644
--- a/src/gallium/include/pipe/p_format.h
+++ b/src/gallium/include/pipe/p_format.h
@@ -398,6 +398,11 @@ enum pipe_format {
 
    PIPE_FORMAT_R8_SRGB                 = 312,
 
+   PIPE_FORMAT_A8L8_SINT               = 313,
+   PIPE_FORMAT_G8R8_SINT               = 314,
+   PIPE_FORMAT_A8B8G8R8_SINT           = 315,
+   PIPE_FORMAT_X8B8G8R8_SINT           = 316,
+
    PIPE_FORMAT_COUNT
 };
 




More information about the mesa-commit mailing list