crocus: assert that 3d samplerview base_array_layer is zero
this codepath will not work on crocus Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15610>
This commit is contained in:
committed by
Marge Bot
parent
65ec846f77
commit
4ec71a3429
@@ -2745,6 +2745,10 @@ crocus_create_sampler_view(struct pipe_context *ctx,
|
||||
if (tmpl->target != PIPE_BUFFER) {
|
||||
isv->view.base_level = tmpl->u.tex.first_level;
|
||||
isv->view.levels = tmpl->u.tex.last_level - tmpl->u.tex.first_level + 1;
|
||||
|
||||
/* Hardware older than skylake ignores this value */
|
||||
assert(tex->target != PIPE_TEXTURE_3D || !tmpl->u.tex.first_layer);
|
||||
|
||||
// XXX: do I need to port f9fd0cf4790cb2a530e75d1a2206dbb9d8af7cb2?
|
||||
isv->view.base_array_layer = tmpl->u.tex.first_layer;
|
||||
isv->view.array_len =
|
||||
|
||||
Reference in New Issue
Block a user