intel: compiler: vec4: add missing default 0 lod
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 3 Oct 2017 15:05:07 +0000 (16:05 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 3 Oct 2017 21:50:46 +0000 (22:50 +0100)
commitd3acc240d0ced4efefd18e8c26510bd6a638c9df
treea0c16ea401fc162bbda0a6e0ced3ff3335673d64
parent8733567e056360fbad7d99f56a64279957bdcf06
intel: compiler: vec4: add missing default 0 lod

We set a similar default value for LOD in the fs backend for TXS/TXL.
Without this we end up generating invalid MOV with a null src.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: "17.2 17.1" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/intel/compiler/brw_vec4_nir.cpp