mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
radv: bump the global VRS image size to maximum supported FB dimensions
Super sampling on a 4K screen could hit this. 16k seems pretty big
but this image is only created on RDNA2 and on-demand if VRS attachments
are used without depth-stencil attachments, which should be rare
enough to care.
Cc: mesa-stable
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23105>
(cherry picked from commit 3adc9b6722)
This commit is contained in:
parent
2913aae4ee
commit
b8334c49fd
2 changed files with 2 additions and 6 deletions
|
|
@ -814,7 +814,7 @@
|
|||
"description": "radv: bump the global VRS image size to maximum supported FB dimensions",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -296,10 +296,6 @@ radv_device_finish_ps_epilogs(struct radv_device *device)
|
|||
VkResult
|
||||
radv_device_init_vrs_state(struct radv_device *device)
|
||||
{
|
||||
/* FIXME: 4k depth buffers should be large enough for now but we might want to adjust this
|
||||
* dynamically at some point.
|
||||
*/
|
||||
uint32_t width = 4096, height = 4096;
|
||||
VkDeviceMemory mem;
|
||||
VkBuffer buffer;
|
||||
VkResult result;
|
||||
|
|
@ -309,7 +305,7 @@ radv_device_init_vrs_state(struct radv_device *device)
|
|||
.sType = VK_STRUCTURE_TYPE_IMAGE_CREATE_INFO,
|
||||
.imageType = VK_IMAGE_TYPE_2D,
|
||||
.format = VK_FORMAT_D16_UNORM,
|
||||
.extent = {width, height, 1},
|
||||
.extent = {MAX_FRAMEBUFFER_WIDTH, MAX_FRAMEBUFFER_HEIGHT, 1},
|
||||
.mipLevels = 1,
|
||||
.arrayLayers = 1,
|
||||
.samples = VK_SAMPLE_COUNT_1_BIT,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue