diff options
author | Timothy Arceri <[email protected]> | 2018-01-24 11:12:51 +1100 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2018-02-10 10:59:10 +1100 |
commit | bc9d9f9b864efd24f0a4c65e2645f689f3ee9e79 (patch) | |
tree | af8458bbbd47abeaa23b2d0c0e4c70b41a40fdfe /src/mesa/state_tracker/st_program.c | |
parent | 97efdc0d57b3b9b6af4a40715482a15f2b8c7d6e (diff) |
st: add nir shader disk cache support
v2: include compute shader support
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/state_tracker/st_program.c')
-rw-r--r-- | src/mesa/state_tracker/st_program.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/state_tracker/st_program.c b/src/mesa/state_tracker/st_program.c index 2c367efa6c3..191567ceec5 100644 --- a/src/mesa/state_tracker/st_program.c +++ b/src/mesa/state_tracker/st_program.c @@ -538,7 +538,7 @@ st_translate_vertex_program(struct st_context *st, if (stvp->glsl_to_tgsi) { stvp->glsl_to_tgsi = NULL; - st_store_tgsi_in_disk_cache(st, &stvp->Base); + st_store_ir_in_disk_cache(st, &stvp->Base, false); } return stvp->tgsi.tokens != NULL; @@ -995,7 +995,7 @@ st_translate_fragment_program(struct st_context *st, if (stfp->glsl_to_tgsi) { stfp->glsl_to_tgsi = NULL; - st_store_tgsi_in_disk_cache(st, &stfp->Base); + st_store_ir_in_disk_cache(st, &stfp->Base, false); } return stfp->tgsi.tokens != NULL; @@ -1411,7 +1411,7 @@ st_translate_program_common(struct st_context *st, outputMapping, &out_state->stream_output); - st_store_tgsi_in_disk_cache(st, prog); + st_store_ir_in_disk_cache(st, prog, false); if ((ST_DEBUG & DEBUG_TGSI) && (ST_DEBUG & DEBUG_MESA)) { _mesa_print_program(prog); |