radeonsi: enable support for EXT_memory_object
authorAndres Rodriguez <andresx7@gmail.com>
Wed, 12 Jul 2017 22:45:32 +0000 (18:45 -0400)
committerTimothy Arceri <tarceri@itsqueeze.com>
Sun, 6 Aug 2017 02:42:07 +0000 (12:42 +1000)
v2: fix an indentation error
v3: don't enable for r600

Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/gallium/drivers/radeonsi/si_pipe.c

index f08cfcb5cdf1456072d0bf4cf7743b3c93be28bc..2c65cc886fbb97df14ca5a47cb4d7e15e67f6f2d 100644 (file)
@@ -516,6 +516,7 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_QUERY_TIME_ELAPSED:
        case PIPE_CAP_NIR_SAMPLERS_AS_DEREF:
        case PIPE_CAP_QUERY_SO_OVERFLOW:
+       case PIPE_CAP_MEMOBJ:
                return 1;
 
        case PIPE_CAP_INT64:
@@ -605,7 +606,6 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_UMA:
        case PIPE_CAP_POLYGON_MODE_FILL_RECTANGLE:
        case PIPE_CAP_POST_DEPTH_COVERAGE:
-       case PIPE_CAP_MEMOBJ:
                return 0;
 
        case PIPE_CAP_QUERY_BUFFER_OBJECT: