anv/cmd_buffer: add the pipeline layout to the pipeline state
authorIago Toral Quiroga <itoral@igalia.com>
Thu, 25 Jan 2018 10:54:35 +0000 (11:54 +0100)
committerIago Toral Quiroga <itoral@igalia.com>
Fri, 26 Jan 2018 13:06:47 +0000 (14:06 +0100)
commit75a4802060095da87283e6de8239cdb03147c8d8
tree166a518988e7d78514d93aec8b3d6311204ce14f
parente1a49f974bc086c54b567471908f78c53b467072
anv/cmd_buffer: add the pipeline layout to the pipeline state

We need to access the pipeline layout to compute correct dynamic
offsets for dyamic UBO/SSBO descriptors when we emit draw commands.
Instead of taking it from the pipeline object, store the layout
in the command buffer pipeline state.

Suggested-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_cmd_buffer.c
src/intel/vulkan/anv_private.h
src/intel/vulkan/genX_cmd_buffer.c