freedreno/a3xx+a4xx: fix for stk binning pass hang
authorRob Clark <robclark@freedesktop.org>
Mon, 16 Nov 2015 20:07:29 +0000 (15:07 -0500)
committerRob Clark <robclark@freedesktop.org>
Wed, 18 Nov 2015 19:31:13 +0000 (14:31 -0500)
commit8106fec74c4d8548974fcf64e052a6bac07e926f
tree1c1fdd5152d6f020bd9cf2a4879c5bdf51fadf11
parentb24c9a8aeef6fbad06d7982aee8bdb55679289f3
freedreno/a3xx+a4xx: fix for stk binning pass hang

We'd end up in a state where shader uses no inputs, yet num_elements is
greater than zero.  Triggered by a TF vertex shader which did:

  gl_Position = vec4(0.0, 0.0, 0.0, 0.0);

resulting in a binning pass variant with no inputs.

Includes equiv fix in a4xx, even though we don't have binning-pass
enabled yet on a4xx.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/a3xx/fd3_emit.c
src/gallium/drivers/freedreno/a4xx/fd4_emit.c
src/gallium/drivers/freedreno/ir3/ir3_shader.h