~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/mesa/main/shaderapi.c

  • 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:
63
63
#include "util/crc32.h"
64
64
#include "util/os_file.h"
65
65
#include "util/list.h"
 
66
#include "util/perf/cpu_trace.h"
66
67
#include "util/u_process.h"
67
68
#include "util/u_string.h"
68
69
#include "api_exec_decl.h"
69
70
 
70
71
#include "state_tracker/st_context.h"
 
72
#include "state_tracker/st_glsl_to_nir.h"
71
73
#include "state_tracker/st_program.h"
72
74
 
73
75
#ifdef ENABLE_SHADER_CACHE
1304
1306
   if (!shProg)
1305
1307
      return;
1306
1308
 
 
1309
   MESA_TRACE_FUNC();
 
1310
 
1307
1311
   if (!no_error) {
1308
1312
      /* From the ARB_transform_feedback2 specification:
1309
1313
       * "The error INVALID_OPERATION is generated by LinkProgram if <program>
1329
1333
   ensure_builtin_types(ctx);
1330
1334
 
1331
1335
   FLUSH_VERTICES(ctx, 0, 0);
1332
 
   _mesa_glsl_link_shader(ctx, shProg);
 
1336
   st_link_shader(ctx, shProg);
1333
1337
 
1334
1338
   /* From section 7.3 (Program Objects) of the OpenGL 4.5 spec:
1335
1339
    *