mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
iris: Fix resource ptr in resolve_sampler_views
Use the sampler view's iris_resource instead of its pipe_resource. For
stencil views of a depth-stencil resource, this enables the stencil
resource to cause a depth cache flush when needed.
Cc: mesa-stable
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3287
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7996>
(cherry picked from commit 1f7427f972)
This commit is contained in:
parent
d11cd6b220
commit
7957019352
2 changed files with 2 additions and 2 deletions
|
|
@ -58,7 +58,7 @@
|
|||
"description": "iris: Fix resource ptr in resolve_sampler_views",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -94,7 +94,7 @@ resolve_sampler_views(struct iris_context *ice,
|
|||
while (views) {
|
||||
const int i = u_bit_scan(&views);
|
||||
struct iris_sampler_view *isv = shs->textures[i];
|
||||
struct iris_resource *res = (void *) isv->base.texture;
|
||||
struct iris_resource *res = isv->res;
|
||||
|
||||
if (res->base.target != PIPE_BUFFER) {
|
||||
if (consider_framebuffer) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue