diff options
author | Emma Anholt <emma@anholt.net> | 2021-08-16 10:24:47 -0700 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2021-08-16 22:48:54 +0000 |
commit | 9b51204d8f2e1bb1ce0d66d17be7d2ddd1906493 (patch) | |
tree | fb453d6935d6d913ebc40a16bc74435d42f0c692 /src/gallium/drivers/i915 | |
parent | dad0c1678270f10a838596af40910c3bc64b8f28 (diff) |
i915g: Fix 3D texture layouts for width != height.
Obvious typo here.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12384>
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r-- | src/gallium/drivers/i915/i915_resource_texture.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/i915/i915_resource_texture.c b/src/gallium/drivers/i915/i915_resource_texture.c index ec04dac0f24..8c9253eb6ad 100644 --- a/src/gallium/drivers/i915/i915_resource_texture.c +++ b/src/gallium/drivers/i915/i915_resource_texture.c @@ -527,7 +527,7 @@ i945_texture_layout_3d(struct i915_texture *tex) unsigned width = util_next_power_of_two(pt->width0); unsigned height = util_next_power_of_two(pt->height0); unsigned depth = util_next_power_of_two(pt->depth0); - unsigned nblocksy = util_format_get_nblocksy(pt->format, width); + unsigned nblocksy = util_format_get_nblocksy(pt->format, height); unsigned pack_x_pitch, pack_x_nr; unsigned pack_y_pitch; unsigned level; |