r600g: lower number of driver const buffers
authorDave Airlie <airlied@redhat.com>
Fri, 11 Sep 2015 03:43:53 +0000 (04:43 +0100)
committerDave Airlie <airlied@redhat.com>
Sat, 12 Sep 2015 05:56:58 +0000 (06:56 +0100)
commitf9caabe8f1bff86d19b53d9ecba5c72b238d9e23
treeee2dd463bfbe042f19068d8d04ad8e8f7adf7907
parent0337a9b2af6cb72eb2ca3ee2e17d5e06ea7aeacd
r600g: lower number of driver const buffers

I'm going to want a driver constant buffer for tess to coordinate
LDS storage, so before I go tackling that I decided to merge the
clip/samplepos and texture info buffers into one. So I can steal
the spare one.

This creates a single constant buffer between the two, with
clip/samplepos taking up a reserved 128 bytes at the start.

Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Glenn Kennard <glenn.kennard@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_shader.c
src/gallium/drivers/r600/r600_state_common.c