[Mesa-dev] [PATCH 2/2] radeon: pass flags that can change shaders to disk_cache_create()
Marek Olšák
maraeo at gmail.com
Mon May 22 16:08:42 UTC 2017
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Sat, May 20, 2017 at 3:36 AM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
> I wasn't sure if I should filter the flags so that we only use
> flags that actually change the shader output. To avoid manual
> updates we just pass in everything for now.
> ---
> src/gallium/drivers/radeon/r600_pipe_common.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
> index 2d8feee..ac6c552 100644
> --- a/src/gallium/drivers/radeon/r600_pipe_common.c
> +++ b/src/gallium/drivers/radeon/r600_pipe_common.c
> @@ -861,21 +861,22 @@ static void r600_disk_cache_create(struct r600_common_screen *rscreen)
> if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo,
> &llvm_timestamp)) {
> res = asprintf(×tamp_str, "%u_%u",
> mesa_timestamp, llvm_timestamp);
> }
> }
> #endif
> if (res != -1) {
> rscreen->disk_shader_cache =
> disk_cache_create(r600_get_chip_name(rscreen),
> - timestamp_str, 0);
> + timestamp_str,
> + rscreen->debug_flags);
> free(timestamp_str);
> }
> }
> }
>
> static struct disk_cache *r600_get_disk_shader_cache(struct pipe_screen *pscreen)
> {
> struct r600_common_screen *rscreen = (struct r600_common_screen*)pscreen;
> return rscreen->disk_shader_cache;
> }
> --
> 2.9.4
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
More information about the mesa-dev
mailing list