virgl: add virgl_shader_binding_state
authorChia-I Wu <olvaffe@gmail.com>
Thu, 16 May 2019 20:32:18 +0000 (13:32 -0700)
committerChia-I Wu <olvaffe@gmail.com>
Fri, 7 Jun 2019 22:47:07 +0000 (22:47 +0000)
commit2e21d66d7a0aadaaea8689276564e9633262d107
tree345870f714e22b86f94c01cb33fa22d2b0394fd4
parent30314270d4695a8fd157e286014c5052f43135ae
virgl: add virgl_shader_binding_state

virgl_shader_binding_state will be used to manage all per-stage
shader bindings.  For now, it manages only sampler views.

This replaces virgl_textures_info and fixes some issues

 - start_slot is now honored
 - views outside of [start_slot, slart_slot+count) are unmodified
 - views are released when the context is destroyed

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
src/gallium/drivers/virgl/virgl_context.c
src/gallium/drivers/virgl/virgl_context.h