diff options
author | Jordan Justen <[email protected]> | 2018-02-28 21:43:22 -0800 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2018-07-09 23:02:33 -0700 |
commit | eb5b4b0fd1b1e8c63a2fcc33b3a31e7a003a1b6c (patch) | |
tree | 795d706772d51be93fc3cf31b6e4d9e1e09e1f12 /src/mesa/drivers/dri/i965/brw_ff_gs.c | |
parent | 48ce7745dcfec33205d6e45906684c112cc24103 (diff) |
i965: Add flag_state param to brw_search_cache
This allows brw_search_cache to be used to find programs without
causing extra state to be emitted in the case where the program isn't
being made active. (For example, to find the program to save out with
the ARB_get_program_binary interface.)
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_ff_gs.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_ff_gs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_ff_gs.c b/src/mesa/drivers/dri/i965/brw_ff_gs.c index 174418a4748..b2c4ee12f4d 100644 --- a/src/mesa/drivers/dri/i965/brw_ff_gs.c +++ b/src/mesa/drivers/dri/i965/brw_ff_gs.c @@ -251,9 +251,9 @@ brw_upload_ff_gs_prog(struct brw_context *brw) } if (brw->ff_gs.prog_active) { - if (!brw_search_cache(&brw->cache, BRW_CACHE_FF_GS_PROG, - &key, sizeof(key), - &brw->ff_gs.prog_offset, &brw->ff_gs.prog_data)) { + if (!brw_search_cache(&brw->cache, BRW_CACHE_FF_GS_PROG, &key, + sizeof(key), &brw->ff_gs.prog_offset, + &brw->ff_gs.prog_data, true)) { brw_codegen_ff_gs_prog(brw, &key); } } |