freedreno/ir3/cmdline: add @const headers for immediates
authorRob Clark <robclark@freedesktop.org>
Wed, 1 Apr 2015 14:52:29 +0000 (10:52 -0400)
committerRob Clark <robclark@freedesktop.org>
Sun, 5 Apr 2015 20:36:34 +0000 (16:36 -0400)
commitf513f006ceed825fa09e606d99190e490e559885
tree01e345ae4748cd8e105a9a21ff9733e86a059547
parent6bc12bb5fd29a70967d467a19153bda9404653bd
freedreno/ir3/cmdline: add @const headers for immediates

Since NIR f/e currently encodes immediates in instructions (rather than
passing via const), we need to ensure that when const's are used the get
initialized to the proper values.  Otherwise comparing NIR to TGSI
compiler, it will use proper immediate values in one case, and randomly
initialize values in the other.  Which confuses ir3test.

Signed-off-by: Rob Clark <robclark@freedesktop.org>
src/gallium/drivers/freedreno/ir3/ir3_cmdline.c