cso: Revert using FS sampler count for other stages at context unbind.

You shouldn't be asking drivers without VS texturing to unbind VS
textures, which was breaking i915g.

Fixes: 802e43a6b5 ("gallium/cso: add unbind mask for cso restore")
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12218>
This commit is contained in:
Emma Anholt 2021-09-02 17:13:52 -07:00 committed by Marge Bot
parent b8b475ad4e
commit 9194ee90c8

View file

@ -325,7 +325,8 @@ void cso_unbind_context(struct cso_context *ctx)
break;
}
int maxsam = ctx->max_fs_samplerviews;
int maxsam = scr->get_shader_param(scr, sh,
PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS);
int maxview = scr->get_shader_param(scr, sh,
PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS);
int maxssbo = scr->get_shader_param(scr, sh,