From: Jason Ekstrand Date: Tue, 19 Jan 2016 20:02:53 +0000 (-0800) Subject: anv/pipeline: Fix point size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5e57a87dcfea5b1e363e96946c456651d43176c2;p=mesa.git anv/pipeline: Fix point size --- 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,