vc4: Don't flush on read-only access of buffers read by the CL.
authorEric Anholt <eric@anholt.net>
Fri, 15 Apr 2016 21:27:34 +0000 (14:27 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 18 Apr 2016 17:10:44 +0000 (10:10 -0700)
commit21a9ed620764bde2021aa7592cf2695dad8f3f74
treedb5a577aaef2a848d389716f85344f774eddfc9f
parent9e8a8b0c8be4a5e0542c915b982f04f25b34b2d8
vc4: Don't flush on read-only access of buffers read by the CL.

Fixes piglit mixed-immediate-and-vbo, and may significantly improve
performance of applications that store a 4-byte IB in the same VBO as
vertex data.
src/gallium/drivers/vc4/vc4_context.c
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_resource.c