projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d18555
)
anv/gen7: Properly handle a GS with zero invocations
author
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 11 Nov 2015 00:41:23 +0000
(16:41 -0800)
committer
Jason Ekstrand
<jason.ekstrand@intel.com>
Wed, 11 Nov 2015 00:41:23 +0000
(16:41 -0800)
src/vulkan/gen7_pipeline.c
patch
|
blob
|
history
diff --git
a/src/vulkan/gen7_pipeline.c
b/src/vulkan/gen7_pipeline.c
index 269d9d46ac5847dcda915afac5a69c8a85bb1bae..6eed60dbd3da6b4f6c10455453228b30cb7c17f6 100644
(file)
--- 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,