temp: vulkan disable dispatch - nv driver crash; updated shadercompilers;
This commit is contained in:
@@ -8,6 +8,8 @@ globallycoherent RWTEXTURE2D(input_output, float4, 0);
|
||||
[numthreads(GENERATEMIPCHAIN_2D_BLOCK_SIZE, GENERATEMIPCHAIN_2D_BLOCK_SIZE, 1)]
|
||||
void main(uint3 DTid : SV_DispatchThreadID)
|
||||
{
|
||||
#ifndef SHADERCOMPILER_SPIRV
|
||||
|
||||
// Query the texture dimensions (width, height):
|
||||
uint2 dim;
|
||||
input_output.GetDimensions(dim.x, dim.y);
|
||||
@@ -44,4 +46,6 @@ void main(uint3 DTid : SV_DispatchThreadID)
|
||||
DeviceMemoryBarrier();
|
||||
input_output[DTid.xy] = sum;
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
@@ -8,6 +8,8 @@ globallycoherent RWTEXTURE3D(input_output, float4, 0);
|
||||
[numthreads(GENERATEMIPCHAIN_3D_BLOCK_SIZE, GENERATEMIPCHAIN_3D_BLOCK_SIZE, GENERATEMIPCHAIN_3D_BLOCK_SIZE)]
|
||||
void main(uint3 DTid : SV_DispatchThreadID)
|
||||
{
|
||||
#ifndef SHADERCOMPILER_SPIRV
|
||||
|
||||
// Query the texture dimensions (width, height, depth):
|
||||
uint3 dim;
|
||||
input_output.GetDimensions(dim.x, dim.y, dim.z);
|
||||
@@ -56,4 +58,6 @@ void main(uint3 DTid : SV_DispatchThreadID)
|
||||
DeviceMemoryBarrier();
|
||||
input_output[DTid] = sum;
|
||||
}
|
||||
|
||||
#endif
|
||||
}
|
||||
@@ -4336,10 +4336,10 @@ namespace wiGraphicsTypes
|
||||
}
|
||||
void GraphicsDevice_Vulkan::Dispatch(UINT threadGroupCountX, UINT threadGroupCountY, UINT threadGroupCountZ, GRAPHICSTHREAD threadID)
|
||||
{
|
||||
renderPass[threadID].disable(GetDirectCommandList(threadID));
|
||||
//renderPass[threadID].disable(GetDirectCommandList(threadID));
|
||||
|
||||
GetFrameResources().ResourceDescriptorsGPU[threadID]->validate(GetDirectCommandList(threadID));
|
||||
vkCmdDispatch(GetDirectCommandList(threadID), threadGroupCountX, threadGroupCountY, threadGroupCountZ);
|
||||
//GetFrameResources().ResourceDescriptorsGPU[threadID]->validate(GetDirectCommandList(threadID));
|
||||
//vkCmdDispatch(GetDirectCommandList(threadID), threadGroupCountX, threadGroupCountY, threadGroupCountZ);
|
||||
|
||||
//VkMemoryBarrier barrier;
|
||||
//barrier.sType = VK_STRUCTURE_TYPE_MEMORY_BARRIER;
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user