mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-11-10 12:39:04 +01:00
vk: make rt renderer not fail validation at startup
This commit is contained in:
parent
14ab0662df
commit
fcd9c77bea
@ -142,7 +142,7 @@ static VkRenderPass createRenderPass( VkFormat depth_format, qboolean ray_tracin
|
||||
};
|
||||
|
||||
BOUNDED_ARRAY(dependencies, VkSubpassDependency, 2);
|
||||
if (ray_tracing) {
|
||||
if (vk_core.rtx) {
|
||||
const VkSubpassDependency color = {
|
||||
.srcSubpass = VK_SUBPASS_EXTERNAL,
|
||||
.dstSubpass = 0,
|
||||
@ -159,11 +159,12 @@ static VkRenderPass createRenderPass( VkFormat depth_format, qboolean ray_tracin
|
||||
.dstSubpass = 0,
|
||||
.srcStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
|
||||
.dstStageMask = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
|
||||
.srcAccessMask = 0, // VK_ACCESS_COLOR_ATTACHMENT_READ_BIT,
|
||||
.srcAccessMask = 0,
|
||||
.dstAccessMask = VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT,
|
||||
.dependencyFlags = VK_DEPENDENCY_BY_REGION_BIT,
|
||||
};
|
||||
BOUNDED_ARRAY_APPEND(dependencies, color);
|
||||
}
|
||||
|
||||
const VkSubpassDependency depth = {
|
||||
.srcSubpass = VK_SUBPASS_EXTERNAL,
|
||||
@ -175,7 +176,6 @@ static VkRenderPass createRenderPass( VkFormat depth_format, qboolean ray_tracin
|
||||
.dependencyFlags = 0,
|
||||
};
|
||||
BOUNDED_ARRAY_APPEND(dependencies, depth);
|
||||
}
|
||||
|
||||
const VkRenderPassCreateInfo rpci = {
|
||||
.sType = VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO,
|
||||
|
@ -41,7 +41,8 @@ struct vk_combuf_s;
|
||||
qboolean createOrUpdateAccelerationStructure(struct vk_combuf_s *combuf, const as_build_args_t *args);
|
||||
|
||||
#define MAX_SCRATCH_BUFFER (32*1024*1024)
|
||||
#define MAX_ACCELS_BUFFER (128*1024*1024)
|
||||
// FIXME compute this by lazily allocating #define MAX_ACCELS_BUFFER (128*1024*1024)
|
||||
#define MAX_ACCELS_BUFFER (256*1024*1024)
|
||||
|
||||
typedef struct {
|
||||
// Geometry metadata. Lifetime is similar to geometry lifetime itself.
|
||||
|
Loading…
Reference in New Issue
Block a user