lima: don't store width in resource-level

We only write to it, we never read from it. Just drop it.

Reviewed-by: Vasily Khoruzhick <anarsoul@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18618>
This commit is contained in:
Erik Faye-Lund
2022-09-15 16:14:49 +02:00
parent 9d3a5c916c
commit 1e19e99ea7
2 changed files with 0 additions and 6 deletions
-5
View File
@@ -119,7 +119,6 @@ setup_miptree(struct lima_resource *res,
util_format_get_nblocksy(pres->format, aligned_height) *
pres->array_size * depth;
res->levels[level].width = aligned_width;
res->levels[level].stride = stride;
res->levels[level].offset = size;
res->levels[level].layer_stride = util_format_get_stride(pres->format, align(width, 16)) * align(height, 16);
@@ -376,11 +375,7 @@ lima_resource_from_handle(struct pipe_screen *pscreen,
(res->bo->size - res->levels[0].offset), size);
goto err_out;
}
res->levels[0].width = width;
}
else
res->levels[0].width = pres->width0;
if (screen->ro) {
/* Make sure that renderonly has a handle to our buffer in the
-1
View File
@@ -35,7 +35,6 @@ struct lima_screen;
struct panfrost_minmax_cache;
struct lima_resource_level {
uint32_t width;
uint32_t stride;
uint32_t offset;
uint32_t layer_stride;