vc4: Fix pitch alignment of linear textures.
Fixes some non-power-of-two texture rendering when I force ARGB8888 to raster.
This commit is contained in:
@@ -258,7 +258,7 @@ vc4_setup_slices(struct vc4_resource *rsc)
|
|||||||
|
|
||||||
if (!rsc->tiled) {
|
if (!rsc->tiled) {
|
||||||
slice->tiling = VC4_TILING_FORMAT_LINEAR;
|
slice->tiling = VC4_TILING_FORMAT_LINEAR;
|
||||||
level_width = align(level_width, 16);
|
level_width = align(level_width, utile_w);
|
||||||
} else {
|
} else {
|
||||||
if (vc4_size_is_lt(level_width, level_height,
|
if (vc4_size_is_lt(level_width, level_height,
|
||||||
rsc->cpp)) {
|
rsc->cpp)) {
|
||||||
|
Reference in New Issue
Block a user