From: Kenneth Graunke Date: Sun, 24 Jun 2018 00:30:18 +0000 (-0700) Subject: iris: Disable unsupported mirror clamp modes X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e67951227d5571e12e2f9ec80731a86a6719e8f7;p=mesa.git iris: Disable unsupported mirror clamp modes --- diff --git a/src/gallium/drivers/iris/iris_screen.c b/src/gallium/drivers/iris/iris_screen.c index f954b9191fb..0e4ec8b1ddb 100644 --- a/src/gallium/drivers/iris/iris_screen.c +++ b/src/gallium/drivers/iris/iris_screen.c @@ -87,7 +87,7 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_OCCLUSION_QUERY: case PIPE_CAP_QUERY_TIME_ELAPSED: case PIPE_CAP_TEXTURE_SWIZZLE: - case PIPE_CAP_TEXTURE_MIRROR_CLAMP: + case PIPE_CAP_TEXTURE_MIRROR_CLAMP_TO_EDGE: case PIPE_CAP_BLEND_EQUATION_SEPARATE: case PIPE_CAP_SM3: case PIPE_CAP_PRIMITIVE_RESTART: @@ -166,6 +166,12 @@ iris_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_PROGRAMMABLE_SAMPLE_LOCATIONS: return false; + case PIPE_CAP_TEXTURE_MIRROR_CLAMP: + /* Intel GPUs don't support PIPE_TEX_WRAP_MIRROR_CLAMP or + * PIPE_TEX_WRAP_MIRROR_CLAMP_TO_BORDER. + */ + return false; + case PIPE_CAP_MAX_DUAL_SOURCE_RENDER_TARGETS: return 1; case PIPE_CAP_MAX_RENDER_TARGETS: