summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorAnatoli Antonovitch <[email protected]>2015-06-10 14:47:03 +0200
committerMarek Olšák <[email protected]>2015-07-22 23:56:00 +0200
commit1828357629721e53a305a29047c0eb18be10915b (patch)
treed6b4585e69c97b3856eb7a59125aed4a6c0996f3 /src/gallium
parent4f57ccd02d4c5f214c7e59e7302c1dc650cff31d (diff)
st/dri: enable 3D textures and sRGB colorspace for EGL
Reviewed-by: Emil Velikov <[email protected]> Signed-off-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/state_trackers/dri/dri_query_renderer.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/dri/dri_query_renderer.c b/src/gallium/state_trackers/dri/dri_query_renderer.c
index 4a28ac37b70..ea31b6c1e10 100644
--- a/src/gallium/state_trackers/dri/dri_query_renderer.c
+++ b/src/gallium/state_trackers/dri/dri_query_renderer.c
@@ -42,6 +42,20 @@ dri2_query_renderer_integer(__DRIscreen *_screen, int param,
PIPE_CAP_UMA);
return 0;
+ case __DRI2_RENDERER_HAS_TEXTURE_3D:
+ value[0] =
+ screen->base.screen->get_param(screen->base.screen,
+ PIPE_CAP_MAX_TEXTURE_3D_LEVELS) != 0;
+ return 0;
+
+ case __DRI2_RENDERER_HAS_FRAMEBUFFER_SRGB:
+ value[0] =
+ screen->base.screen->is_format_supported(screen->base.screen,
+ PIPE_FORMAT_B8G8R8A8_SRGB,
+ PIPE_TEXTURE_2D, 0,
+ PIPE_BIND_RENDER_TARGET);
+ return 0;
+
default:
return driQueryRendererIntegerCommon(_screen, param, value);
}