freedreno/a6xx: Only set emit.hs/ds when we're drawing patches
authorKristian H. Kristensen <hoegsberg@google.com>
Fri, 8 Nov 2019 00:32:24 +0000 (16:32 -0800)
committerKristian H. Kristensen <hoegsberg@google.com>
Fri, 8 Nov 2019 00:40:27 +0000 (16:40 -0800)
commitd2d0c8186d1c3fe929147950cc887a5c5d7978dd
tree57a99bf2d08aa0fdb5df89f917e8d6858cb71961
parente58479088548a547e4a5df59797adf1f8003feca
freedreno/a6xx: Only set emit.hs/ds when we're drawing patches

At least the gallium blitter helper will call us to draw with
tessellation shaders set but a non-patch primitive.

Signed-off-by: Kristian H. Kristensen <hoegsberg@google.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/gallium/drivers/freedreno/a6xx/fd6_draw.c