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.
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
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,
}
/* 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,