diff options
author | Jason Ekstrand <[email protected]> | 2016-11-15 15:18:32 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-11-22 13:03:31 -0800 |
commit | 2e311e421122e0232987fdca3645c6bd39fe2470 (patch) | |
tree | 0c5a6d97751010821759b65802f6de65ad6081aa | |
parent | 08441dae59e93c2eea3b64a861bc3462dc595c51 (diff) |
i965/fs: Implement load_layer_id for fragment shaders
Reviewed-by: Jordan Justen <[email protected]>
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp index 82e22c27310..c88fa77472c 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs_nir.cpp @@ -3259,6 +3259,11 @@ fs_visitor::nir_emit_fs_intrinsic(const fs_builder &bld, break; } + case nir_intrinsic_load_layer_id: + dest.type = BRW_REGISTER_TYPE_UD; + bld.MOV(dest, fetch_render_target_array_index(bld)); + break; + case nir_intrinsic_load_helper_invocation: case nir_intrinsic_load_sample_mask_in: case nir_intrinsic_load_sample_id: { |