projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dad0c16
)
i915g: Fix 3D texture layouts for width != height.
author
Emma Anholt
<emma@anholt.net>
Mon, 16 Aug 2021 17:24:47 +0000
(10:24 -0700)
committer
Marge Bot
<eric+marge@anholt.net>
Mon, 16 Aug 2021 22:48:54 +0000
(22:48 +0000)
Obvious typo here.
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12384>
src/gallium/drivers/i915/i915_resource_texture.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/i915/i915_resource_texture.c
b/src/gallium/drivers/i915/i915_resource_texture.c
index
ec04dac
..
8c9253e
100644
(file)
--- 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;