mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
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:
parent
b8b475ad4e
commit
9194ee90c8
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue