r600: create LDS info constants buffer and write LDS registers. (v2)
authorDave Airlie <airlied@redhat.com>
Mon, 30 Nov 2015 04:56:10 +0000 (14:56 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 6 Dec 2015 23:59:00 +0000 (09:59 +1000)
commit731ff3766f0c4f0792ea518907d65f7b632d4053
treeda4c7e6ac63e7967cfb03e2e645e1719320b4396
parent38b5ee479615572d06a52b4c7b74d76c77afc037
r600: create LDS info constants buffer and write LDS registers. (v2)

This creates a constant buffer with the information about
the layout of the LDS memory that is given to the vertex, tess
control and tess evaluation shaders.

This also programs the LDS size and the LS_HS_CONFIG registers,
on evergreen only.

v2: calculate lds hs num waves properly (Marek)
Emit the state only when something has changed (airlied).

Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c
src/gallium/drivers/r600/r600_pipe.h
src/gallium/drivers/r600/r600_state_common.c