mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
lavapipe: Do not adjust imageGranularity for different block sizes
Fixes:d747c4a("lavapipe: Implement sparse buffers and images") Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31038> (cherry picked from commita53f11261f)
This commit is contained in:
parent
412fbc16ed
commit
3ab2475350
2 changed files with 4 additions and 4 deletions
|
|
@ -3224,7 +3224,7 @@
|
|||
"description": "lavapipe: Do not adjust imageGranularity for different block sizes",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "d747c4a8746834d3c9a6fbd7b455b7ce9441fb38",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -518,9 +518,9 @@ fill_sparse_image_format_properties(struct lvp_physical_device *pdev, VkImageTyp
|
|||
prop->aspectMask = VK_IMAGE_ASPECT_COLOR_BIT;
|
||||
prop->flags = 0;
|
||||
prop->imageGranularity = (VkExtent3D){
|
||||
.width = util_format_get_tilesize(pformat, type + 1, samples, 0) * util_format_get_blockwidth(pformat),
|
||||
.height = util_format_get_tilesize(pformat, type + 1, samples, 1) * util_format_get_blockheight(pformat),
|
||||
.depth = util_format_get_tilesize(pformat, type + 1, samples, 2) * util_format_get_blockdepth(pformat),
|
||||
.width = util_format_get_tilesize(pformat, type + 1, samples, 0),
|
||||
.height = util_format_get_tilesize(pformat, type + 1, samples, 1),
|
||||
.depth = util_format_get_tilesize(pformat, type + 1, samples, 2),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue