OSDN Git Service

vc4: Simplify vc4_use_bo and make sure it's not a shader.
authorEric Anholt <eric@anholt.net>
Tue, 28 Jul 2015 17:20:10 +0000 (10:20 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 29 Jul 2015 02:35:26 +0000 (19:35 -0700)
commit1f5e070dd7ddd344a913f2f5daddebb4c51abb8a
treedf946fe4d40be76a32b2822a168ae1a027da6ee0
parent044f7bbda077ea7029fb1004183b29127307bd84
vc4: Simplify vc4_use_bo and make sure it's not a shader.

Since the conversion to keeping validated shaders around for the BO's
lifetime, we haven't been checking that rendering doesn't happen to
shaders.  Make vc4_use_bo check that always, and just don't use it for the
VC4_MODE_SHADER case (so now modes are unused)
src/gallium/drivers/vc4/kernel/vc4_drv.h
src/gallium/drivers/vc4/kernel/vc4_render_cl.c
src/gallium/drivers/vc4/kernel/vc4_validate.c
src/gallium/drivers/vc4/vc4_simulator.c