OSDN Git Service

radeonsi: Use param export count from si_llvm_export_vs in si_shader_vs
authorMichel Dänzer <michel.daenzer@amd.com>
Mon, 6 Jul 2015 08:23:07 +0000 (17:23 +0900)
committerMichel Dänzer <michel@daenzer.net>
Tue, 7 Jul 2015 03:35:35 +0000 (12:35 +0900)
commit248b26429f52d0f19949a083aa3e0aeebcbe2138
treece8dcedb2babcdd76aeee031b2d46482089a2275
parentb0334a9aeb9369fd20854ab2ef4b2ee0087492ab
radeonsi: Use param export count from si_llvm_export_vs in si_shader_vs

This eliminates the error prone logic in si_shader_vs recalculating this
value.

It also fixes TGSI_SEMANTIC_CLIPDIST outputs incorrectly not being
counted for VS exports. They need to be counted because they are passed
to the pixel shader as parameters as well.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=91193
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_shaders.c