diff options
author | Rob Clark <[email protected]> | 2016-01-01 12:52:22 -0500 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-01-01 15:32:46 -0500 |
commit | 816ddee6b8c45648bd24cfd6b4bbf1a2ad6fedb0 (patch) | |
tree | 3a228058842f1f6b55e5ce73498341f12fbafbea | |
parent | 3dce7bf26874350264a1d567234ae1d785a08127 (diff) |
nir/lower_clip: add missing writemask on store
Signed-off-by: Rob Clark <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
-rw-r--r-- | src/glsl/nir/nir_lower_clip.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/nir/nir_lower_clip.c b/src/glsl/nir/nir_lower_clip.c index f84a02410a8..0ca6a289396 100644 --- a/src/glsl/nir/nir_lower_clip.c +++ b/src/glsl/nir/nir_lower_clip.c @@ -72,6 +72,7 @@ store_clipdist_output(nir_builder *b, nir_variable *out, nir_ssa_def **val) store = nir_intrinsic_instr_create(b->shader, nir_intrinsic_store_output); store->num_components = 4; store->const_index[0] = out->data.driver_location; + store->const_index[1] = 0xf; /* wrmask */ store->src[0].ssa = nir_vec4(b, val[0], val[1], val[2], val[3]); store->src[0].is_ssa = true; store->src[1] = nir_src_for_ssa(nir_imm_int(b, 0)); |