radv: pre-calculate user_data_0 registers and store in pipeline
authorDave Airlie <airlied@redhat.com>
Mon, 6 Nov 2017 06:49:55 +0000 (06:49 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 6 Nov 2017 21:44:49 +0000 (21:44 +0000)
commit3bf8be41b8ea2a40e78f26159a905dd5a005af5b
tree46c58c18c6e9b3296f9801a52d523b5ef671c65d
parentd547e18184978affd95a72dc524ca648efbe9812
radv: pre-calculate user_data_0 registers and store in pipeline

There's no point recalculating these the whole time on descriptor
emission, just store them at pipeline creation.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_shader.c
src/amd/vulkan/radv_shader.h