zink: fix layer check for compressed format surface creation
this is a universal check, not a check based on mutable state
Fixes: 56108b411f ("zink: verify compressed format layer count when creating surfaces")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21881>
This commit is contained in:
committed by
Marge Bot
parent
a42c57dc01
commit
cf973fe299
@@ -598,8 +598,6 @@ spec@arb_tessellation_shader@execution@variable-indexing@tes-both-input-array-ve
|
||||
spec@arb_tessellation_shader@execution@variable-indexing@tes-both-input-array-vec3-index-rd,Crash
|
||||
spec@arb_tessellation_shader@execution@variable-indexing@tes-both-input-array-vec4-index-rd,Crash
|
||||
|
||||
spec@ext_texture_array@compressed texsubimage pbo,Crash
|
||||
|
||||
# "arb_texture_buffer_object-formats: ../src/gallium/drivers/zink/zink_context.c:807: create_bvci: Assertion `bvci.format' failed."
|
||||
spec@arb_texture_buffer_object@formats (vs- arb),Crash
|
||||
|
||||
|
||||
@@ -283,7 +283,7 @@ zink_create_surface(struct pipe_context *pctx,
|
||||
format is a non-compressed format, the levelCount and layerCount members of
|
||||
subresourceRange must both be 1
|
||||
*/
|
||||
if (needs_mutable && util_format_is_compressed(pres->format) && templ->u.tex.first_layer != templ->u.tex.last_layer)
|
||||
if (util_format_is_compressed(pres->format) && templ->u.tex.first_layer != templ->u.tex.last_layer)
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user