etnaviv: enable triangle strips only when the hardware supports it
authorGert Wollny <gert.wollny@collabora.com>
Wed, 2 Oct 2019 07:28:55 +0000 (09:28 +0200)
committerGert Wollny <gw.fossdev@gmail.com>
Wed, 2 Oct 2019 07:34:36 +0000 (07:34 +0000)
commitc5da8230deb0b1f885392224cfd3613d099ec440
treebc05bb1cd5b3601e23bd537c5255fa4007496bfb
parentd855e19b87ef6ef674689404f452c7daf31e9486
etnaviv: enable triangle strips only when the hardware supports it

Some hardware has a bug with triangle strips and it is signalled by the
flag BUG_FIXED8 whether this bug has been fixed. So only enable triangle
strips when this flag is set.

Thanks: Jonathan Marek and Christian Gmeiner for the pointers

v2: Add TODO to indicate that the handling should be refined
    (Jonathan & Christian)

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_context.c