v3d: Create a state uploader for packing our shaders together.
authorEric Anholt <eric@anholt.net>
Fri, 7 Dec 2018 20:18:34 +0000 (12:18 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 8 Dec 2018 00:48:23 +0000 (16:48 -0800)
commitb38e4d313fc27a225a36c42f84b2bee9933e62e6
treec4cb203d7e79ebc7ace5b7c79772ea9b3efc5247
parent191188876098801edeaaa231f95fed545fbcc08a
v3d: Create a state uploader for packing our shaders together.

Shaders are usually quite short, and are private to the context.  We can
save memory and reduce the work the kernel needs to do at exec time by
packing them together in a stream uploader for long-lived state.
src/gallium/drivers/v3d/v3d_context.c
src/gallium/drivers/v3d/v3d_context.h
src/gallium/drivers/v3d/v3d_program.c
src/gallium/drivers/v3d/v3dx_draw.c