diff options
author | Jason Ekstrand <[email protected]> | 2015-11-10 16:41:23 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-11-10 16:41:23 -0800 |
commit | 750b8f9e983832c8725ac2e7a040470959a3d8f2 (patch) | |
tree | 2c738a2f6cb1c6001044beeb4296d7a16da43d5d /src/vulkan | |
parent | 9d18555c8d24f9037f3e4094c6aa5b80604b9324 (diff) |
anv/gen7: Properly handle a GS with zero invocations
Diffstat (limited to 'src/vulkan')
-rw-r--r-- | src/vulkan/gen7_pipeline.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/gen7_pipeline.c b/src/vulkan/gen7_pipeline.c index 269d9d46ac5..6eed60dbd3d 100644 --- a/src/vulkan/gen7_pipeline.c +++ b/src/vulkan/gen7_pipeline.c @@ -502,7 +502,7 @@ gen7_graphics_pipeline_create( /* This in the next dword on HSW. */ .ControlDataFormat = gs_prog_data->control_data_format, .ControlDataHeaderSize = gs_prog_data->control_data_header_size_hwords, - .InstanceControl = gs_prog_data->invocations - 1, + .InstanceControl = MAX2(gs_prog_data->invocations, 1) - 1, .DispatchMode = gs_prog_data->base.dispatch_mode, .GSStatisticsEnable = true, .IncludePrimitiveID = gs_prog_data->include_primitive_id, |