From: Marek Olšák Date: Wed, 3 Jul 2019 04:22:29 +0000 (-0400) Subject: radeonsi/gfx10: don't expose unimplemented PIPE_CAP_QUERY_SO_OVERFLOW X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=605900d7dd03915bd531ea6a34e1eaeaa1804eeb;p=mesa.git radeonsi/gfx10: don't expose unimplemented PIPE_CAP_QUERY_SO_OVERFLOW Acked-by: Pierre-Eric Pelloux-Prayer Acked-by: Dave Airlie --- diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c index 3cc1085db3b..e51cca30671 100644 --- a/src/gallium/drivers/radeonsi/si_get.c +++ b/src/gallium/drivers/radeonsi/si_get.c @@ -140,7 +140,6 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_QUERY_TIMESTAMP: case PIPE_CAP_QUERY_TIME_ELAPSED: case PIPE_CAP_NIR_SAMPLERS_AS_DEREF: - case PIPE_CAP_QUERY_SO_OVERFLOW: case PIPE_CAP_MEMOBJ: case PIPE_CAP_LOAD_CONSTBUF: case PIPE_CAP_INT64: @@ -159,6 +158,9 @@ static int si_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TGSI_DIV: return 1; + case PIPE_CAP_QUERY_SO_OVERFLOW: + return sscreen->info.chip_class <= GFX9; + case PIPE_CAP_RESOURCE_FROM_USER_MEMORY: return !SI_BIG_ENDIAN && sscreen->info.has_userptr;