projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d2737d
)
st/dri: fix dri2_format_table for argb1555 and rgb565
author
Marek Olšák
<marek.olsak@amd.com>
Fri, 11 Jan 2019 21:19:02 +0000
(16:19 -0500)
committer
Marek Olšák
<marek.olsak@amd.com>
Mon, 14 Jan 2019 19:54:19 +0000
(14:54 -0500)
The bug caused that rgb565 framebuffers used argb1555.
Fixes: 433ca3127a3b94bfe9a513e7c7ce594e09e1359f
Reviewed-by: Kristian H. Kristensen <hoegsberg@gmail.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/state_trackers/dri/dri2.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/dri/dri2.c
b/src/gallium/state_trackers/dri/dri2.c
index 6fc07e42f746862eb7b6011eff2676a2a037839b..ebbbabb6492af4a42ce9b80a45dbfa582cd7924f 100644
(file)
--- a/
src/gallium/state_trackers/dri/dri2.c
+++ b/
src/gallium/state_trackers/dri/dri2.c
@@
-92,7
+92,7
@@
static const struct dri2_format_mapping dri2_format_table[] = {
__DRI_IMAGE_COMPONENTS_RGB, PIPE_FORMAT_BGRX8888_UNORM },
{ __DRI_IMAGE_FOURCC_XBGR8888, __DRI_IMAGE_FORMAT_XBGR8888,
__DRI_IMAGE_COMPONENTS_RGB, PIPE_FORMAT_RGBX8888_UNORM },
- { __DRI_IMAGE_FOURCC_ARGB1555, __DRI_IMAGE_FORMAT_
RGB56
5,
+ { __DRI_IMAGE_FOURCC_ARGB1555, __DRI_IMAGE_FORMAT_
ARGB155
5,
__DRI_IMAGE_COMPONENTS_RGBA, PIPE_FORMAT_B5G5R5A1_UNORM },
{ __DRI_IMAGE_FOURCC_RGB565, __DRI_IMAGE_FORMAT_RGB565,
__DRI_IMAGE_COMPONENTS_RGB, PIPE_FORMAT_B5G6R5_UNORM },