summaryrefslogtreecommitdiffstats
path: root/src/vulkan/anv_pipeline.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-06 13:32:52 -0800
committerJason Ekstrand <[email protected]>2015-11-06 13:32:52 -0800
commit612e35b2c65c99773b73e53d0e6fd112b1a7431f (patch)
tree32ba8f5964b6cb28fdad912c1fe80d5abd10b144 /src/vulkan/anv_pipeline.c
parentf8052351ac1cce196b99a78114d513695fbca4d6 (diff)
anv: Do range-checking in the shader for dynamic buffers
Diffstat (limited to 'src/vulkan/anv_pipeline.c')
-rw-r--r--src/vulkan/anv_pipeline.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c
index 1555b23fc69..e4f68350b81 100644
--- a/src/vulkan/anv_pipeline.c
+++ b/src/vulkan/anv_pipeline.c
@@ -370,7 +370,7 @@ anv_pipeline_compile(struct anv_pipeline *pipeline,
}
if (pipeline->layout && pipeline->layout->stage[stage].has_dynamic_offsets)
- prog_data->nr_params += MAX_DYNAMIC_BUFFERS;
+ prog_data->nr_params += MAX_DYNAMIC_BUFFERS * 2;
if (prog_data->nr_params > 0) {
prog_data->param = (const gl_constant_value **)