aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorTapani Pälli <[email protected]>2019-11-15 09:12:15 +0200
committerMarge Bot <[email protected]>2019-12-17 09:28:25 +0000
commit8b6b5ce6691c80f3254964b746499d5ca75b59b1 (patch)
tree5403581345bb93ef4355568688fa1470f9328c01 /src/mesa
parentcffa7bb99084eb9e5988c2be4427f6b188cc7bbe (diff)
dri: add __DRI_IMAGE_FORMAT_SXRGB8
Add format definition and required plumbing to create images. Cc: <[email protected]> Signed-off-by: Tapani Pälli <[email protected]> Reviewed-by: Lionel Landwerlin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3077>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/common/dri_util.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/common/dri_util.c b/src/mesa/drivers/dri/common/dri_util.c
index 3a03e4d0b01..e3ea4d6cfff 100644
--- a/src/mesa/drivers/dri/common/dri_util.c
+++ b/src/mesa/drivers/dri/common/dri_util.c
@@ -951,6 +951,10 @@ static const struct {
.mesa_format = MESA_FORMAT_B8G8R8A8_SRGB,
},
{
+ .image_format = __DRI_IMAGE_FORMAT_SXRGB8,
+ .mesa_format = MESA_FORMAT_B8G8R8X8_SRGB,
+ },
+ {
.image_format = __DRI_IMAGE_FORMAT_R16,
.mesa_format = MESA_FORMAT_R_UNORM16,
},