diff options
author | Kenneth Graunke <[email protected]> | 2018-10-29 22:30:06 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-05 13:43:33 -0800 |
commit | cdc53fa81cbeb80373eac33ef7695d9025caf14b (patch) | |
tree | e6b10a9f3dae3aed6a9ecc733305ff1a04003cee /src/mesa/Makefile.sources | |
parent | 4f799264d1ac40769f84d27e945e981a89f4346e (diff) |
st/nir: Make new helpers for constructing built-in NIR shaders.
The state tracker generates several built-in shaders in order to
perform scissored clears, upload/download PBOs, and so on. These
are currently constructed using TGSI, using ureg and u_simple_shader.
I want to have NIR versions of these shaders, for my Gallium driver
that has a NIR backend but no TGSI support. To that end, we'll want
a few helpers to help construct simple shaders.
This patch adds two new helpers:
- st_nir_finish_builtin_shader() takes a manually constructed NIR
shader, applies lowering passes (like st_link_nir would do for GLSL),
and constructs the pipe_shader_state.
- st_nir_make_passthrough_shader() makes a simple passthrough shader,
which copies inputs to outputs. This is similar to u_simple_shaders.
v2: Set info->fs.untyped_color_outputs for vc4/v3d (thanks Eric!).
Reviewed-by: Marek Olšák <[email protected]>
Tested-by: Rob Clark <[email protected]>
Tested-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/Makefile.sources')
-rw-r--r-- | src/mesa/Makefile.sources | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/Makefile.sources b/src/mesa/Makefile.sources index 6ff7ee2e3b6..05d2f8a08ee 100644 --- a/src/mesa/Makefile.sources +++ b/src/mesa/Makefile.sources @@ -538,6 +538,7 @@ STATETRACKER_FILES = \ state_tracker/st_mesa_to_tgsi.c \ state_tracker/st_mesa_to_tgsi.h \ state_tracker/st_nir.h \ + state_tracker/st_nir_builtins.c \ state_tracker/st_nir_lower_builtin.c \ state_tracker/st_nir_lower_tex_src_plane.c \ state_tracker/st_nir_lower_uniforms_to_ubo.c \ |