[Mesa-dev] [PATCH 19/22] radeonsi: advertise support for GL_EXT_semaphore
Andres Rodriguez
andresx7 at gmail.com
Fri Dec 22 00:41:54 UTC 2017
Expose the feature only when we have syncobj support available
Signed-off-by: Andres Rodriguez <andresx7 at gmail.com>
---
src/gallium/drivers/radeonsi/si_get.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c
index ed819bf..9e08b52 100644
--- a/src/gallium/drivers/radeonsi/si_get.c
+++ b/src/gallium/drivers/radeonsi/si_get.c
@@ -274,9 +274,11 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param)
case PIPE_CAP_POST_DEPTH_COVERAGE:
case PIPE_CAP_TILE_RASTER_ORDER:
case PIPE_CAP_MAX_COMBINED_SHADER_OUTPUT_RESOURCES:
- case PIPE_CAP_SEMAPHORE_SIGNAL:
return 0;
+ case PIPE_CAP_SEMAPHORE_SIGNAL:
+ return sscreen->info.has_syncobj;
+
case PIPE_CAP_NATIVE_SEMAPHORE_FD:
return sscreen->info.has_sync_file;
--
2.9.3
More information about the mesa-dev
mailing list