diff options
author | Jason Ekstrand <[email protected]> | 2016-02-18 11:44:26 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-02-18 11:44:26 -0800 |
commit | e0565f40ea7f1653318a3e33cfeb46dcdbfd28ae (patch) | |
tree | 984230504dba8b3f953a4ed115dd879ceef76b2c /src/intel/vulkan/anv_pipeline.c | |
parent | 79c0781f44af2a93473c68cf317bb6844f31cfc8 (diff) |
anv/pipeline: Use nir's num_images for allocating image_params
Diffstat (limited to 'src/intel/vulkan/anv_pipeline.c')
-rw-r--r-- | src/intel/vulkan/anv_pipeline.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_pipeline.c b/src/intel/vulkan/anv_pipeline.c index 2f1ce3956a9..27872d2769a 100644 --- a/src/intel/vulkan/anv_pipeline.c +++ b/src/intel/vulkan/anv_pipeline.c @@ -341,9 +341,8 @@ anv_pipeline_compile(struct anv_pipeline *pipeline, if (pipeline->layout && pipeline->layout->stage[stage].has_dynamic_offsets) prog_data->nr_params += MAX_DYNAMIC_BUFFERS * 2; - if (pipeline->bindings[stage].image_count > 0) - prog_data->nr_params += pipeline->bindings[stage].image_count * - BRW_IMAGE_PARAM_SIZE; + if (nir->info.num_images > 0) + prog_data->nr_params += nir->info.num_images * BRW_IMAGE_PARAM_SIZE; if (prog_data->nr_params > 0) { /* XXX: I think we're leaking this */ |