lima/gpir: add limit of max 512 instructions
authorErico Nunes <nunes.erico@gmail.com>
Mon, 29 Apr 2019 22:10:02 +0000 (00:10 +0200)
committerErico Nunes <nunes.erico@gmail.com>
Thu, 2 May 2019 00:02:58 +0000 (00:02 +0000)
commit257a9b0a94ddf2e88bc29771f1f46abdd2d4464d
tree8baabf8e58a21c2c34d34301143c2e2ca14286e4
parent09c669260f6d311d0d99f2c63ebd0ec5b68853f8
lima/gpir: add limit of max 512 instructions

It has been noted that the lima GP has a limit of 512 instructions,
after which the shaders don't work and fail silently.
This commit adds a check to make the shader compilation abort when the
shader exceeds this limit, so that we get a clear reason for why the
program will not work.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Qiang Yu <yuq825@gmail.com>
src/gallium/drivers/lima/ir/gp/codegen.c