[Mesa-dev] [PATCH] gallium/radeon: disable the cache when nir backend enabled
Marek Olšák
maraeo at gmail.com
Tue Nov 14 16:27:58 UTC 2017
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Marek
On Mon, Nov 13, 2017 at 1:42 AM, Timothy Arceri <tarceri at itsqueeze.com> wrote:
> ---
> src/gallium/drivers/radeon/r600_pipe_common.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c
> index 68bde2ad18..ce612113c5 100644
> --- a/src/gallium/drivers/radeon/r600_pipe_common.c
> +++ b/src/gallium/drivers/radeon/r600_pipe_common.c
> @@ -682,20 +682,24 @@ static const char *r600_get_family_name(const struct r600_common_screen *rscreen
> default: return "AMD unknown";
> }
> }
>
> static void r600_disk_cache_create(struct r600_common_screen *rscreen)
> {
> /* Don't use the cache if shader dumping is enabled. */
> if (rscreen->debug_flags & DBG_ALL_SHADERS)
> return;
>
> + /* TODO: remove this once gallium supports a nir cache */
> + if (rscreen->debug_flags & DBG(NIR))
> + return;
> +
> uint32_t mesa_timestamp;
> if (disk_cache_get_function_timestamp(r600_disk_cache_create,
> &mesa_timestamp)) {
> char *timestamp_str;
> int res = -1;
> uint32_t llvm_timestamp;
>
> if (disk_cache_get_function_timestamp(LLVMInitializeAMDGPUTargetInfo,
> &llvm_timestamp)) {
> res = asprintf(×tamp_str, "%u_%u",
> --
> 2.14.3
>
> _______________________________________________
> 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