summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMario Kleiner <[email protected]>2017-12-15 23:05:03 +0100
committerMarek Olšák <[email protected]>2018-01-03 22:57:57 +0100
commit6e665d07eb943ffcab50c711f4d81285c9f244a7 (patch)
treeda269dca20ea0a25b4a1ecf76979eb61aed99728 /src
parent3f867d1299de17b77b45f953aea35aeb9c8e0980 (diff)
st/mesa: Handle BGR[A/X]1010102 formats.
Signed-off-by: Mario Kleiner <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/state_tracker/st_cb_fbo.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_cb_fbo.c b/src/mesa/state_tracker/st_cb_fbo.c
index e2303b4011f..a982f87b608 100644
--- a/src/mesa/state_tracker/st_cb_fbo.c
+++ b/src/mesa/state_tracker/st_cb_fbo.c
@@ -286,6 +286,12 @@ st_new_renderbuffer_fb(enum pipe_format format, int samples, boolean sw)
strb->software = sw;
switch (format) {
+ case PIPE_FORMAT_B10G10R10A2_UNORM:
+ strb->Base.InternalFormat = GL_RGB10_A2;
+ break;
+ case PIPE_FORMAT_B10G10R10X2_UNORM:
+ strb->Base.InternalFormat = GL_RGB10;
+ break;
case PIPE_FORMAT_R8G8B8A8_UNORM:
case PIPE_FORMAT_B8G8R8A8_UNORM:
case PIPE_FORMAT_A8R8G8B8_UNORM: