~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/include/pipe/p_defines.h

  • 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:
28
28
#ifndef PIPE_DEFINES_H
29
29
#define PIPE_DEFINES_H
30
30
 
31
 
#include "p_compiler.h"
 
31
#include "util/compiler.h"
32
32
 
33
33
#include "compiler/shader_enums.h"
 
34
#include "util/os_time.h"
34
35
 
35
36
#ifdef __cplusplus
36
37
extern "C" {
559
560
};
560
561
 
561
562
/**
562
 
 * Primitive types:
563
 
 */
564
 
enum PACKED pipe_prim_type {
565
 
   PIPE_PRIM_POINTS,
566
 
   PIPE_PRIM_LINES,
567
 
   PIPE_PRIM_LINE_LOOP,
568
 
   PIPE_PRIM_LINE_STRIP,
569
 
   PIPE_PRIM_TRIANGLES,
570
 
   PIPE_PRIM_TRIANGLE_STRIP,
571
 
   PIPE_PRIM_TRIANGLE_FAN,
572
 
   PIPE_PRIM_QUADS,
573
 
   PIPE_PRIM_QUAD_STRIP,
574
 
   PIPE_PRIM_POLYGON,
575
 
   PIPE_PRIM_LINES_ADJACENCY,
576
 
   PIPE_PRIM_LINE_STRIP_ADJACENCY,
577
 
   PIPE_PRIM_TRIANGLES_ADJACENCY,
578
 
   PIPE_PRIM_TRIANGLE_STRIP_ADJACENCY,
579
 
   PIPE_PRIM_PATCHES,
580
 
   PIPE_PRIM_MAX,
581
 
};
582
 
 
583
 
/**
584
563
 * Tessellator spacing types
585
564
 */
586
565
enum pipe_tess_spacing {
627
606
   PIPE_STAT_QUERY_HS_INVOCATIONS,
628
607
   PIPE_STAT_QUERY_DS_INVOCATIONS,
629
608
   PIPE_STAT_QUERY_CS_INVOCATIONS,
 
609
   PIPE_STAT_QUERY_TS_INVOCATIONS,
 
610
   PIPE_STAT_QUERY_MS_INVOCATIONS,
630
611
};
631
612
 
632
613
/**
675
656
   PIPE_VIEWPORT_SWIZZLE_NEGATIVE_W,
676
657
};
677
658
 
678
 
#define PIPE_TIMEOUT_INFINITE 0xffffffffffffffffull
679
 
 
680
 
 
681
659
/**
682
660
 * Device reset status.
683
661
 */
800
778
   PIPE_CAP_CONSTANT_BUFFER_OFFSET_ALIGNMENT,
801
779
   PIPE_CAP_START_INSTANCE,
802
780
   PIPE_CAP_QUERY_TIMESTAMP,
 
781
   PIPE_CAP_TIMER_RESOLUTION,
803
782
   PIPE_CAP_TEXTURE_MULTISAMPLE,
804
783
   PIPE_CAP_MIN_MAP_BUFFER_ALIGNMENT,
805
784
   PIPE_CAP_CUBE_MAP_ARRAY,
854
833
   PIPE_CAP_FORCE_PERSAMPLE_INTERP,
855
834
   PIPE_CAP_SHAREABLE_SHADERS,
856
835
   PIPE_CAP_COPY_BETWEEN_COMPRESSED_AND_PLAIN_FORMATS,
857
 
   PIPE_CAP_CLEAR_TEXTURE,
858
836
   PIPE_CAP_CLEAR_SCISSORED,
859
837
   PIPE_CAP_DRAW_PARAMETERS,
860
838
   PIPE_CAP_SHADER_PACK_HALF_FLOAT,
936
914
   PIPE_CAP_SURFACE_SAMPLE_COUNT,
937
915
   PIPE_CAP_IMAGE_ATOMIC_FLOAT_ADD,
938
916
   PIPE_CAP_QUERY_PIPELINE_STATISTICS_SINGLE,
939
 
   PIPE_CAP_RGB_OVERRIDE_DST_ALPHA_BLEND,
940
917
   PIPE_CAP_DEST_SURFACE_SRGB_CONTROL,
941
918
   PIPE_CAP_NIR_COMPACT_ARRAYS,
942
919
   PIPE_CAP_MAX_VARYINGS,
1111
1088
   PIPE_SHADER_CAP_INT16,
1112
1089
   PIPE_SHADER_CAP_GLSL_16BIT_CONSTS,
1113
1090
   PIPE_SHADER_CAP_MAX_TEXTURE_SAMPLERS,
1114
 
   PIPE_SHADER_CAP_PREFERRED_IR,
1115
1091
   PIPE_SHADER_CAP_TGSI_SQRT_SUPPORTED,
1116
1092
   PIPE_SHADER_CAP_MAX_SAMPLER_VIEWS,
1117
1093
   PIPE_SHADER_CAP_DROUND_SUPPORTED, /* all rounding modes */
1161
1137
   PIPE_COMPUTE_CAP_MAX_MEM_ALLOC_SIZE,
1162
1138
   PIPE_COMPUTE_CAP_MAX_CLOCK_FREQUENCY,
1163
1139
   PIPE_COMPUTE_CAP_MAX_COMPUTE_UNITS,
 
1140
   PIPE_COMPUTE_CAP_MAX_SUBGROUPS,
1164
1141
   PIPE_COMPUTE_CAP_IMAGES_SUPPORTED,
1165
 
   PIPE_COMPUTE_CAP_SUBGROUP_SIZE,
 
1142
   PIPE_COMPUTE_CAP_SUBGROUP_SIZES,
1166
1143
   PIPE_COMPUTE_CAP_MAX_VARIABLE_THREADS_PER_BLOCK,
1167
1144
};
1168
1145
 
1236
1213
         uint64_t hs_invocations; /**< Num hull shader invocations. */
1237
1214
         uint64_t ds_invocations; /**< Num domain shader invocations. */
1238
1215
         uint64_t cs_invocations; /**< Num compute shader invocations. */
 
1216
         uint64_t ts_invocations; /**< Num task shader invocations. */
 
1217
         uint64_t ms_invocations; /**< Num mesh shader invocations. */
1239
1218
      };
1240
 
      uint64_t counters[11];
 
1219
      uint64_t counters[13];
1241
1220
   };
1242
1221
};
1243
1222