mesa/renderbuffer: always add PIPE_BIND_SAMPLER_VIEW to rendering textures

this fixes expectations around e.g., using u_blitter to copy textures

cc: mesa-stable

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
(cherry picked from commit 929eb9a021)

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40752>
This commit is contained in:
Mike Blumenkrantz 2026-03-16 13:04:41 -04:00 committed by Eric Engestrom
parent b3197d6821
commit ad2384db21
3 changed files with 7 additions and 1 deletions

View file

@ -5224,7 +5224,7 @@
"description": "mesa/renderbuffer: always add PIPE_BIND_SAMPLER_VIEW to rendering textures",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -203,3 +203,7 @@ dEQP-GLES31.functional.primitive_bounding_box.triangles.global_state.vertex_tess
dEQP-GLES31.functional.primitive_bounding_box.wide_lines.global_state.vertex_tessellation_geometry_fragment.fbo_bbox_smaller,Fail
dEQP-GLES31.functional.srgb_texture_decode.skip_decode.sr8.using_sampler,Fail
KHR-GL32.framebuffer_blit.multisampled_to_singlesampled_blit_depth_config_test,Fail
# !40444
KHR-GL32.packed_depth_stencil.blit.depth24_stencil8,Fail
KHR-GL32.packed_depth_stencil.blit.depth32f_stencil8,Fail

View file

@ -273,6 +273,8 @@ renderbuffer_alloc_storage(struct gl_context * ctx,
PIPE_BIND_RENDER_TARGET);
}
templ.bind |= PIPE_BIND_SAMPLER_VIEW;
rb->texture = screen->resource_create(screen, &templ);
if (!rb->texture)