mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
nvk: Use a GS for layerered rendering pre-MaxwellB
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
parent
74e8be6545
commit
7c096786ca
1 changed files with 6 additions and 0 deletions
|
|
@ -2,6 +2,9 @@
|
|||
#include "nvk_cmd_buffer.h"
|
||||
#include "nvk_device.h"
|
||||
#include "nvk_image.h"
|
||||
#include "nvk_physical_device.h"
|
||||
|
||||
#include "nvk_clb197.h"
|
||||
|
||||
static VkResult
|
||||
nvk_cmd_bind_map_buffer(struct vk_command_buffer *vk_cmd,
|
||||
|
|
@ -28,10 +31,13 @@ nvk_cmd_bind_map_buffer(struct vk_command_buffer *vk_cmd,
|
|||
VkResult
|
||||
nvk_device_init_meta(struct nvk_device *dev)
|
||||
{
|
||||
struct nvk_physical_device *pdev = nvk_device_physical(dev);
|
||||
|
||||
VkResult result = vk_meta_device_init(&dev->vk, &dev->meta);
|
||||
if (result != VK_SUCCESS)
|
||||
return result;
|
||||
|
||||
dev->meta.use_gs_for_layer = pdev->info.cls_eng3d < MAXWELL_B,
|
||||
dev->meta.cmd_bind_map_buffer = nvk_cmd_bind_map_buffer;
|
||||
dev->meta.max_bind_map_buffer_size_B = 64 * 1024; /* TODO */
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue