diff options
author | Ian Romanick <[email protected]> | 2012-01-17 12:41:15 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2012-01-18 12:48:37 -0800 |
commit | 8a472427559ea33186c71dfbab8254651fec3077 (patch) | |
tree | 8afad9eaadb64457d33be4ead1cfbe4057acdb19 /src/mesa/drivers/dri/i915 | |
parent | 221c678329fd1c073d5f8dcf387129cd426ecf07 (diff) |
intel: Set depth to 6 for cubemaps
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=41216
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43212
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=43250
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Reviewed-by: Kenneth Graunke <[email protected]>
Cc: Jin Yang <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i915')
-rw-r--r-- | src/mesa/drivers/dri/i915/i915_tex_layout.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i915/i915_tex_layout.c b/src/mesa/drivers/dri/i915/i915_tex_layout.c index caa7127203b..1e3cfadddc8 100644 --- a/src/mesa/drivers/dri/i915/i915_tex_layout.c +++ b/src/mesa/drivers/dri/i915/i915_tex_layout.c @@ -129,7 +129,7 @@ i915_miptree_layout_cube(struct intel_mipmap_tree * mt) intel_miptree_set_level_info(mt, level, 0, 0, lvlWidth, lvlHeight, - 1); + 6); lvlWidth /= 2; lvlHeight /= 2; } @@ -337,7 +337,7 @@ i945_miptree_layout_cube(struct intel_mipmap_tree * mt) for (level = mt->first_level; level <= mt->last_level; level++) { intel_miptree_set_level_info(mt, level, 0, 0, - lvlWidth, lvlHeight, 1); + lvlWidth, lvlHeight, 6); lvlWidth /= 2; lvlHeight /= 2; } |