projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afb327a
)
anv/wsi/x11: Expose SRGB all the time
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 1 Feb 2016 20:55:23 +0000
(12:55 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Mon, 1 Feb 2016 21:06:35 +0000
(13:06 -0800)
After a long discussion with Eric Anholt and Owen Taylor, I learned that
X11 is basically always sRGB as that's what the scanout hardware does and X
doesn't modify anything. Therefore, we should just always expose sRGB
formats.
src/vulkan/anv_wsi_x11.c
patch
|
blob
|
history
diff --git
a/src/vulkan/anv_wsi_x11.c
b/src/vulkan/anv_wsi_x11.c
index c4a82706b009dacf7432f16472e90a74a3be8e25..acb4a60e65f214f5519b6b9c014c347c258ad273 100644
(file)
--- a/
src/vulkan/anv_wsi_x11.c
+++ b/
src/vulkan/anv_wsi_x11.c
@@
-117,7
+117,7
@@
wsi_x11_get_connection(struct anv_instance *instance, xcb_connection_t *conn)
}
static const VkSurfaceFormatKHR formats[] = {
- { .format = VK_FORMAT_B8G8R8A8_
UNORM
, },
+ { .format = VK_FORMAT_B8G8R8A8_
SRGB
, },
};
static const VkPresentModeKHR present_modes[] = {