diff options
author | Topi Pohjolainen <[email protected]> | 2017-06-15 17:37:34 +0300 |
---|---|---|
committer | Topi Pohjolainen <[email protected]> | 2017-06-19 22:18:53 +0300 |
commit | 335543699a20387987613ac58e83c5a4328cc4b9 (patch) | |
tree | b5964889df395c0e79d9522f4b19b7d58821ebcb /src | |
parent | a5e1c9f1d5b6063f0a92634967475a05362c0d31 (diff) |
i965/gen6: Declare minify(depth, level) layers for 3D stencil
Keeps following patch refactoring the table allocation
non-functional.
Suggested-by: Nanley Chery <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Signed-off-by: Topi Pohjolainen <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_tex_layout.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c index 1f0a1e9a38d..fd774f42c83 100644 --- a/src/mesa/drivers/dri/i965/brw_tex_layout.c +++ b/src/mesa/drivers/dri/i965/brw_tex_layout.c @@ -272,7 +272,9 @@ brw_miptree_layout_gen6_hiz_stencil(struct intel_mipmap_tree *mt) mt->total_height = 0; for (unsigned level = mt->first_level; level <= mt->last_level; level++) { - intel_miptree_set_level_info(mt, level, x, y, depth); + intel_miptree_set_level_info( + mt, level, x, y, + mt->target == GL_TEXTURE_3D ? minify(depth, level) : depth); const unsigned img_width = ALIGN(DIV_ROUND_UP(width, bw), mt->halign); const unsigned img_height = |