diff options
author | Eric Anholt <eric@anholt.net> | 2016-08-05 17:10:18 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2016-08-19 13:11:36 -0700 |
commit | c35f9792202c4450d19c5616e2a38b9e81e418fe (patch) | |
tree | 58ac7d76a5932a8dff9e3afe1828a30dae4eddd1 /src/mesa/drivers/dri/i965/blorp_blit.c | |
parent | 24728637e2c006012e4c0a3d87629b53beaddd3b (diff) | |
download | external_mesa3d-c35f9792202c4450d19c5616e2a38b9e81e418fe.tar.gz external_mesa3d-c35f9792202c4450d19c5616e2a38b9e81e418fe.tar.bz2 external_mesa3d-c35f9792202c4450d19c5616e2a38b9e81e418fe.zip |
nir: Add nir_builder support for individual system value loads.
The previous nir_load_system_value(b, nir_intrinsic_load_whatever), 0) was
rather verbose, when system values should be easy to generate.
The index is left out because only one system value had an index included
in it.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Diffstat (limited to 'src/mesa/drivers/dri/i965/blorp_blit.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/blorp_blit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/blorp_blit.c b/src/mesa/drivers/dri/i965/blorp_blit.c index edbd726fb6..a4b3fe0e5b 100644 --- a/src/mesa/drivers/dri/i965/blorp_blit.c +++ b/src/mesa/drivers/dri/i965/blorp_blit.c @@ -106,7 +106,7 @@ blorp_blit_get_frag_coords(nir_builder *b, if (key->persample_msaa_dispatch) { return nir_vec3(b, nir_channel(b, coord, 0), nir_channel(b, coord, 1), - nir_load_system_value(b, nir_intrinsic_load_sample_id, 0)); + nir_load_sample_id(b)); } else { return nir_vec2(b, nir_channel(b, coord, 0), nir_channel(b, coord, 1)); } |