[Mesa-dev] [PATCH] swr: enable clear_texture with util_clear_texture
Edward O'Callaghan
funfunctor at folklore1984.net
Sun Feb 26 04:59:50 UTC 2017
Reviewed-by: Edward O'Callaghan <funfunctor at folklore1984.net>
On 02/26/2017 02:09 PM, Bruce Cherniak wrote:
> Passes corresponding piglit tests.
> ---
> src/gallium/drivers/swr/swr_context.cpp | 1 +
> src/gallium/drivers/swr/swr_screen.cpp | 2 +-
> 2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/swr/swr_context.cpp b/src/gallium/drivers/swr/swr_context.cpp
> index 3e17edc..b89ce1b 100644
> --- a/src/gallium/drivers/swr/swr_context.cpp
> +++ b/src/gallium/drivers/swr/swr_context.cpp
> @@ -486,6 +486,7 @@ swr_create_context(struct pipe_screen *p_screen, void *priv, unsigned flags)
> ctx->pipe.buffer_subdata = u_default_buffer_subdata;
> ctx->pipe.texture_subdata = u_default_texture_subdata;
>
> + ctx->pipe.clear_texture = util_clear_texture;
> ctx->pipe.resource_copy_region = swr_resource_copy;
> ctx->pipe.render_condition = swr_render_condition;
>
> diff --git a/src/gallium/drivers/swr/swr_screen.cpp b/src/gallium/drivers/swr/swr_screen.cpp
> index f4fe1f3..f2ad4dd 100644
> --- a/src/gallium/drivers/swr/swr_screen.cpp
> +++ b/src/gallium/drivers/swr/swr_screen.cpp
> @@ -244,6 +244,7 @@ swr_get_param(struct pipe_screen *screen, enum pipe_cap param)
> case PIPE_CAP_CLIP_HALFZ:
> case PIPE_CAP_POLYGON_OFFSET_CLAMP:
> case PIPE_CAP_DEPTH_BOUNDS_TEST:
> + case PIPE_CAP_CLEAR_TEXTURE:
> case PIPE_CAP_TEXTURE_FLOAT_LINEAR:
> case PIPE_CAP_TEXTURE_HALF_FLOAT_LINEAR:
> case PIPE_CAP_CULL_DISTANCE:
> @@ -284,7 +285,6 @@ swr_get_param(struct pipe_screen *screen, enum pipe_cap param)
> case PIPE_CAP_FORCE_PERSAMPLE_INTERP:
> case PIPE_CAP_SHAREABLE_SHADERS:
> case PIPE_CAP_COPY_BETWEEN_COMPRESSED_AND_PLAIN_FORMATS:
> - case PIPE_CAP_CLEAR_TEXTURE:
> case PIPE_CAP_DRAW_PARAMETERS:
> case PIPE_CAP_TGSI_PACK_HALF_FLOAT:
> case PIPE_CAP_MULTI_DRAW_INDIRECT:
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170226/d66d655c/attachment.sig>
More information about the mesa-dev
mailing list