~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/frontends/clover/nir/invocation.cpp

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "util/functional.hpp"
33
33
 
34
34
#include <compiler/glsl_types.h>
 
35
#include <compiler/clc/nir_clc_helpers.h>
35
36
#include <compiler/nir/nir_builder.h>
36
37
#include <compiler/nir/nir_serialize.h>
37
38
#include <compiler/spirv/nir_spirv.h>
38
39
#include <util/u_math.h>
 
40
#include <util/hex.h>
39
41
 
40
42
using namespace clover;
41
43
 
239
241
 
240
242
   _mesa_sha1_final(&ctx, sha1);
241
243
 
242
 
   disk_cache_format_hex_id(cache_id, sha1, 20 * 2);
 
244
   mesa_bytes_to_hex(cache_id, sha1, 20);
243
245
   return disk_cache_create("clover-clc", cache_id, 0);
244
246
}
245
247
 
255
257
   auto *compiler_options = dev_get_nir_compiler_options(dev);
256
258
 
257
259
   return nir_load_libclc_shader(dev.address_bits(), dev.clc_cache,
258
 
                                 &spirv_options, compiler_options);
 
260
                                 &spirv_options, compiler_options,
 
261
                                 dev.clc_cache != nullptr);
259
262
}
260
263
 
261
264
static bool