]> code.ossystems Code Review - openembedded-core.git/commit
mesa: etnaviv: fix shader miscompilation with more than 16 labels
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 5 Jul 2017 21:36:27 +0000 (18:36 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Jul 2017 12:33:59 +0000 (13:33 +0100)
commit7a0ababb9f5c7f09bf072412e0744dcf69534129
tree3fe66fd0e43a8a624073a140f366b30c9e581b79
parent85476cdb19d5c383966ba753a71eaeb3622bd6b4
mesa: etnaviv: fix shader miscompilation with more than 16 labels

The labels array may change its virtual address on a reallocation, so
it is invalid to cache pointers into the array. Rather than using the
pointer directly, remember the array index.

Fixes miscompilation of shaders in glmark2 ideas, leading to GPU hangs.

This is a backport from 17.1.5.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/mesa/files/etnaviv_fix-shader-miscompilation.patch [new file with mode: 0644]
meta/recipes-graphics/mesa/mesa_17.1.4.bb