mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 19:30:12 +01:00
i965/wm: Prepare image surfaces for isl based
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
59bf765c36
commit
7e5c8e593b
1 changed files with 6 additions and 0 deletions
|
|
@ -1639,6 +1639,12 @@ get_image_num_layers(const struct intel_mipmap_tree *mt, GLenum target,
|
|||
if (target == GL_TEXTURE_CUBE_MAP)
|
||||
return 6;
|
||||
|
||||
if (mt->surf.size > 0) {
|
||||
return target == GL_TEXTURE_3D ?
|
||||
minify(mt->surf.logical_level0_px.depth, level) :
|
||||
mt->surf.logical_level0_px.array_len;
|
||||
}
|
||||
|
||||
return target == GL_TEXTURE_3D ?
|
||||
minify(mt->logical_depth0, level) : mt->logical_depth0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue