st/nine: Allocate vs constbuf buffer for indirect addressing once.
authorAxel Davy <axel.davy@ens.fr>
Sat, 3 Jan 2015 10:29:40 +0000 (11:29 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 22 Jan 2015 22:16:24 +0000 (22:16 +0000)
commitf8a74410f16b8a01da329975d10b631cb2a928e5
tree760b425aab1147b809ddc534132581e1a5d9b26c
parente0f75044c8d2793b6a5bd9832c57c5d199822486
st/nine: Allocate vs constbuf buffer for indirect addressing once.

When the shader does indirect addressing on the constants,
we allocate a temporary constant buffer to which we copy
the constants from the app given user constants and
the constants filled in the shader.

This patch makes this buffer be allocated once.

Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Axel Davy <axel.davy@ens.fr>
Signed-off-by: Tiziano Bacocco <tizbac2@gmail.com>
Cc: "10.4" <mesa-stable@lists.freedesktop.org>
src/gallium/state_trackers/nine/device9.c
src/gallium/state_trackers/nine/nine_state.c
src/gallium/state_trackers/nine/nine_state.h