From 5e57a87dcfea5b1e363e96946c456651d43176c2 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Tue, 19 Jan 2016 12:02:53 -0800 Subject: [PATCH] anv/pipeline: Fix point size --- src/vulkan/anv_pipeline.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vulkan/anv_pipeline.c b/src/vulkan/anv_pipeline.c index 517fcb0ac3a..2a22497815a 100644 --- a/src/vulkan/anv_pipeline.c +++ b/src/vulkan/anv_pipeline.c @@ -544,7 +544,8 @@ anv_pipeline_compile_vs(struct anv_pipeline *pipeline, ralloc_steal(mem_ctx, nir); prog_data->inputs_read = nir->info.inputs_read; - pipeline->writes_point_size = nir->info.outputs_written & VARYING_SLOT_PSIZ; + if (nir->info.outputs_written & (1ull << VARYING_SLOT_PSIZ)) + pipeline->writes_point_size = true; brw_compute_vue_map(&pipeline->device->info, &prog_data->base.vue_map, @@ -608,6 +609,9 @@ anv_pipeline_compile_gs(struct anv_pipeline *pipeline, if (module->nir == NULL) ralloc_steal(mem_ctx, nir); + if (nir->info.outputs_written & (1ull << VARYING_SLOT_PSIZ)) + pipeline->writes_point_size = true; + brw_compute_vue_map(&pipeline->device->info, &prog_data->base.vue_map, nir->info.outputs_written, -- 2.30.2