nvc0: stick compute kernel arguments into uniform_bo
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 25 Apr 2016 21:14:03 +0000 (23:14 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 28 Apr 2016 22:44:08 +0000 (00:44 +0200)
commit9f92a8f00a55f4abc06c2f3c21b2dfd70905a30e
tree2954660e3fa938a8ff133d07313d65a6dbc942f8
parent124a5d4ca05de608bc2a1575c507bd2ba3c7bc64
nvc0: stick compute kernel arguments into uniform_bo

Having one buffer object for input kernel arguments coming from clover
and an other one for OpenGL user uniforms is unnecessary. Using the
uniform_bo object for both GL/CL uniforms avoids to declare a new BO.

This only affects compute programs but it should not hurt anything
because the states are dirtied and data will get reuploaded.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Ilia Mirkin <imirkin@alum.mit.edu>
src/gallium/drivers/nouveau/nvc0/nvc0_compute.c
src/gallium/drivers/nouveau/nvc0/nvc0_context.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
src/gallium/drivers/nouveau/nvc0/nvc0_screen.h
src/gallium/drivers/nouveau/nvc0/nve4_compute.c