[Mesa-dev] [PATCH] [swr] Update fs texture & sampler state logic
Cherniak, Bruce
bruce.cherniak at intel.com
Wed Jan 25 00:47:46 UTC 2017
Reviewed-by: Bruce Cherniak <bruce.cherniak at intel.com>
> On Jan 24, 2017, at 5:27 PM, George Kyriazis <george.kyriazis at intel.com> wrote:
>
> In swr_update_derived() update texture and sampler state on a new fragment
> shader. GALLIUM_HUD can update fs using a previously bound texture and
> sampler.
> ---
> src/gallium/drivers/swr/swr_state.cpp | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp
> index 41e0356..f1f4963 100644
> --- a/src/gallium/drivers/swr/swr_state.cpp
> +++ b/src/gallium/drivers/swr/swr_state.cpp
> @@ -1283,7 +1283,8 @@ swr_update_derived(struct pipe_context *pipe,
> SwrSetPixelShaderState(ctx->swrContext, &psState);
>
> /* JIT sampler state */
> - if (ctx->dirty & SWR_NEW_SAMPLER) {
> + if (ctx->dirty & (SWR_NEW_SAMPLER |
> + SWR_NEW_FS)) {
> swr_update_sampler_state(ctx,
> PIPE_SHADER_FRAGMENT,
> key.nr_samplers,
> @@ -1291,7 +1292,9 @@ swr_update_derived(struct pipe_context *pipe,
> }
>
> /* JIT sampler view state */
> - if (ctx->dirty & (SWR_NEW_SAMPLER_VIEW | SWR_NEW_FRAMEBUFFER)) {
> + if (ctx->dirty & (SWR_NEW_SAMPLER_VIEW |
> + SWR_NEW_FRAMEBUFFER |
> + SWR_NEW_FS)) {
> swr_update_texture_state(ctx,
> PIPE_SHADER_FRAGMENT,
> key.nr_sampler_views,
> --
> 2.10.0.windows.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list