diff options
author | Karol Herbst <[email protected]> | 2019-03-28 22:21:46 +0100 |
---|---|---|
committer | Karol Herbst <[email protected]> | 2019-04-12 09:02:59 +0200 |
commit | 3b2a9ffd60eb3612e1034019e499a27a1c2a672b (patch) | |
tree | c6aac3f057624528636cbdac2e45eff9a5231df7 /src/compiler/nir/nir.h | |
parent | 400f0bfba123e829fafa6449e6d45e11b6f20e78 (diff) |
nir: move brw_nir_rewrite_image_intrinsic into common code
Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Jason Ekstrand <[email protected]>
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r-- | src/compiler/nir/nir.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index 09950bf3398..fb36b04ae66 100644 --- a/src/compiler/nir/nir.h +++ b/src/compiler/nir/nir.h @@ -1407,6 +1407,10 @@ nir_intrinsic_align(const nir_intrinsic_instr *intrin) return align_offset ? 1 << (ffs(align_offset) - 1) : align_mul; } +/* Converts a image_deref_* intrinsic into a image_* one */ +void nir_rewrite_image_intrinsic(nir_intrinsic_instr *instr, + nir_ssa_def *handle); + /** * \group texture information * |