diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-08-26 05:30:39 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2020-08-26 05:30:39 +0000 |
commit | 27c93456b58343162f7c4ad20ca6bea0c9a91646 (patch) | |
tree | 945c20b63e0b9975ee40f114c5312f8d8f1a2d0b /lib/mesa/src/gallium/auxiliary/draw/draw_fs.c | |
parent | 875b83a3ee95e248388fbf72271acc80f6f97987 (diff) |
Import Mesa 20.1.6
Diffstat (limited to 'lib/mesa/src/gallium/auxiliary/draw/draw_fs.c')
-rw-r--r-- | lib/mesa/src/gallium/auxiliary/draw/draw_fs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/mesa/src/gallium/auxiliary/draw/draw_fs.c b/lib/mesa/src/gallium/auxiliary/draw/draw_fs.c index 1543bd86f..e0ca7e407 100644 --- a/lib/mesa/src/gallium/auxiliary/draw/draw_fs.c +++ b/lib/mesa/src/gallium/auxiliary/draw/draw_fs.c @@ -32,6 +32,7 @@ #include "util/u_prim.h" #include "tgsi/tgsi_parse.h" +#include "nir/nir_to_tgsi_info.h" #include "draw_fs.h" #include "draw_private.h" @@ -47,7 +48,10 @@ draw_create_fragment_shader(struct draw_context *draw, dfs = CALLOC_STRUCT(draw_fragment_shader); if (dfs) { dfs->base = *shader; - tgsi_scan_shader(shader->tokens, &dfs->info); + if (shader->type == PIPE_SHADER_IR_TGSI) + tgsi_scan_shader(shader->tokens, &dfs->info); + else + nir_tgsi_scan_shader(shader->ir.nir, &dfs->info, true); } return dfs; |