diff --git a/src/gallium/auxiliary/util/u_dump_state.c b/src/gallium/auxiliary/util/u_dump_state.c index b408005280b..a8fd726b152 100644 --- a/src/gallium/auxiliary/util/u_dump_state.c +++ b/src/gallium/auxiliary/util/u_dump_state.c @@ -742,6 +742,7 @@ util_dump_image_view(FILE *stream, const struct pipe_image_view *state) util_dump_member(stream, uint, state, u.buf.size); } else { + util_dump_member(stream, bool, state, u.tex.single_layer_view); util_dump_member(stream, uint, state, u.tex.first_layer); util_dump_member(stream, uint, state, u.tex.last_layer); util_dump_member(stream, uint, state, u.tex.level); diff --git a/src/gallium/include/pipe/p_state.h b/src/gallium/include/pipe/p_state.h index 531a16be108..8e35245395f 100644 --- a/src/gallium/include/pipe/p_state.h +++ b/src/gallium/include/pipe/p_state.h @@ -546,6 +546,7 @@ struct pipe_image_view unsigned first_layer:16; /**< first layer to use for array textures */ unsigned last_layer:16; /**< last layer to use for array textures */ unsigned level:8; /**< mipmap level to use */ + bool single_layer_view; /**< single layer view of array */ } tex; struct { unsigned offset; /**< offset in bytes */