broadcom/compiler: support nir_intrinsic_load_sample_id
authorArcady Goldmints-Orlov <agoldmints@igalia.com>
Sat, 25 Jul 2020 20:20:02 +0000 (15:20 -0500)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Aug 2020 20:14:14 +0000 (20:14 +0000)
commitbd87cdad18138d36c6d9aca61270ffd2ddfd81e5
tree697909bd37d64a403ad9f3bea3593c9de2f22887
parentadda97c98bfb5122a261561b3103023e7c21b381
broadcom/compiler: support nir_intrinsic_load_sample_id

This adds support for the intrinsic as well as the vir_SAMPID
instruction that corresponds to it in vir.

Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6356>
src/broadcom/compiler/nir_to_vir.c
src/broadcom/compiler/v3d_compiler.h