projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a2bcdb7
)
xlib: Use PIPE_FORMAT_R8G8B8A8_UNORM(_REV) as appropriate.
author
José Fonseca
<jfonseca@vmware.com>
Mon, 1 Mar 2010 16:28:38 +0000
(16:28 +0000)
committer
José Fonseca
<jfonseca@vmware.com>
Mon, 1 Mar 2010 16:28:38 +0000
(16:28 +0000)
src/gallium/state_trackers/glx/xlib/xm_api.c
patch
|
blob
|
history
diff --git
a/src/gallium/state_trackers/glx/xlib/xm_api.c
b/src/gallium/state_trackers/glx/xlib/xm_api.c
index 188b885f68aa5cfcabbdb0ca7efade0d9c63e717..228e6d0a501cebd49b78f3f78500e4629887a8d9 100644
(file)
--- a/
src/gallium/state_trackers/glx/xlib/xm_api.c
+++ b/
src/gallium/state_trackers/glx/xlib/xm_api.c
@@
-274,10
+274,10
@@
choose_pixel_format(XMesaVisual v)
&& v->BitsPerPixel == 32) {
if (native_byte_order) {
/* no byteswapping needed */
- return
0 /* PIXEL_FORMAT_U_A8_B8_G8_R8 */
;
+ return
PIPE_FORMAT_R8G8B8A8_UNORM
;
}
else {
- return PIPE_FORMAT_R8G8B8A8_UNORM;
+ return PIPE_FORMAT_R8G8B8A8_UNORM
_REV
;
}
}
else if ( GET_REDMASK(v) == 0xff0000