mesa/src/compiler
Lionel Landwerlin 3dfe76c8f3 nir/lower_shader_calls: put inserted instructions into a dummy block
When moving code into the main block or loop blocks, put the code into
its own :

    if(true) { ... }

block so that we avoid break/continue/return issues.

v2: Also take care of the main block with return instructions

v3: Make deletion more obvious with dummy if blocks (Jason)

v4: Fixup assert for loops (Lionel)

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 8dfb240b1f ("nir: Add raytracing shader call lowering pass.")
Reviewed-by: Jason Ekstrand <jason.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16036>
(cherry picked from commit 35d82ecf1e)
2022-05-10 21:10:29 -07:00
..
clc clc: Use kernel_arg_type_qual string to add const type qualifier to arg metadata 2021-11-15 07:47:00 -08:00
glsl glsl/nir: set new_style_shadow for sparse tex ops as necessary 2022-04-24 21:03:20 -07:00
isaspec freedreno/isaspec: Add missing dep of encode.py/decode.py calls on isa.py 2022-02-02 11:21:56 -08:00
nir nir/lower_shader_calls: put inserted instructions into a dummy block 2022-05-10 21:10:29 -07:00
spirv spirv: Handle Op*MulExtended for non-32-bit types 2022-04-26 09:26:18 -07:00
builtin_type_macros.h glsl: add vec5 glsl types 2022-01-18 16:10:35 +08:00
glsl_types.cpp glsl: add vec5 glsl types 2022-01-18 16:10:35 +08:00
glsl_types.h compiler/types: Add a texture type 2021-10-16 05:49:34 +00:00
meson.build spirv: Use a single binary for gtests 2021-10-20 17:55:36 +00:00
nir_gl_types.h nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
nir_types.cpp nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
nir_types.h nir: remove gl.h include from nir headers. 2022-01-19 21:54:58 +00:00
shader_enums.c compiler: add new MESH_VIEW_COUNT/MESH_VIEW_INDICES system values 2022-01-11 22:45:23 +00:00
shader_enums.h intel/compiler: add a new pass to lower shading rate into HW format 2022-02-02 17:09:46 +00:00
shader_info.h mesa/*: add a shader primitive type to get away from GL types. 2022-01-19 21:54:58 +00:00