temp: vulkan disable dispatch - nv driver crash; updated shadercompilers;

This commit is contained in:
turanszkij
2018-04-27 15:50:08 +01:00
parent 103d7967b6
commit 407bb95cba
5 changed files with 11 additions and 3 deletions
@@ -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
}
+3 -3
View File
@@ -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.