This implements set_shader_images() and resource invalidation for images. As OpenGL requires at least 8 images, we are going to expose this minimum value even if this might be raised for Kepler, but this limit is mainly for Fermi because the hardware only accepts 8 images.
Based on original patch by Ilia Mirkin.
afa0478 nvc0: add preliminary support for images
src/gallium/drivers/nouveau/nvc0/nvc0_context.c | 17 +++++++
src/gallium/drivers/nouveau/nvc0/nvc0_context.h | 4 ++
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h | 1 +
src/gallium/drivers/nouveau/nvc0/nvc0_state.c | 53 +++++++++++++++++++-
.../drivers/nouveau/nvc0/nvc0_state_validate.c | 1 +
5 files changed, 74 insertions(+), 2 deletions(-)
Upstream: cgit.freedesktop.org