~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/auxiliary/tgsi/tgsi_ureg.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:
30
30
 
31
31
#include "pipe/p_defines.h"
32
32
#include "util/format/u_formats.h"
33
 
#include "pipe/p_compiler.h"
 
33
#include "util/compiler.h"
34
34
#include "pipe/p_shader_tokens.h"
35
35
#include "util/u_debug.h"
36
36
 
239
239
                        unsigned usage_mask,
240
240
                        unsigned array_id,
241
241
                        unsigned array_size,
242
 
                        boolean invariant);
 
242
                        bool invariant);
243
243
 
244
244
struct ureg_dst
245
245
ureg_DECL_output_masked(struct ureg_program *,
330
330
struct ureg_dst
331
331
ureg_DECL_array_temporary( struct ureg_program *,
332
332
                           unsigned size,
333
 
                           boolean local );
 
333
                           bool local );
334
334
 
335
335
void 
336
336
ureg_release_temporary( struct ureg_program *ureg,
362
362
                unsigned index,
363
363
                enum tgsi_texture_type target,
364
364
                enum pipe_format format,
365
 
                boolean wr,
366
 
                boolean raw);
 
365
                bool wr,
 
366
                bool raw);
367
367
 
368
368
struct ureg_src
369
369
ureg_DECL_buffer(struct ureg_program *ureg, unsigned nr, bool atomic);
502
502
/* Where the destination register has a valid file, but an empty
503
503
 * writemask.
504
504
 */
505
 
static inline boolean
 
505
static inline bool
506
506
ureg_dst_is_empty( struct ureg_dst dst )
507
507
{
508
508
   return dst.File != TGSI_FILE_NULL &&
583
583
struct ureg_emit_insn_result
584
584
ureg_emit_insn(struct ureg_program *ureg,
585
585
               enum tgsi_opcode opcode,
586
 
               boolean saturate,
 
586
               bool saturate,
587
587
               unsigned precise,
588
588
               unsigned num_dst,
589
589
               unsigned num_src);
631
631
   struct ureg_emit_insn_result insn;                           \
632
632
   insn = ureg_emit_insn(ureg,                                  \
633
633
                         opcode,                                \
634
 
                         FALSE,                                 \
 
634
                         false,                                 \
635
635
                         0,                                     \
636
636
                         0,                                     \
637
637
                         0);                                    \
646
646
   struct ureg_emit_insn_result insn;                           \
647
647
   insn = ureg_emit_insn(ureg,                                  \
648
648
                         opcode,                                \
649
 
                         FALSE,                                 \
 
649
                         false,                                 \
650
650
                         0,                                     \
651
651
                         0,                                     \
652
652
                         1);                                    \
662
662
   struct ureg_emit_insn_result insn;                           \
663
663
   insn = ureg_emit_insn(ureg,                                  \
664
664
                         opcode,                                \
665
 
                         FALSE,                                 \
 
665
                         false,                                 \
666
666
                         0,                                     \
667
667
                         0,                                     \
668
668
                         0);                                    \
679
679
   struct ureg_emit_insn_result insn;                           \
680
680
   insn = ureg_emit_insn(ureg,                                  \
681
681
                         opcode,                                \
682
 
                         FALSE,                                 \
 
682
                         false,                                 \
683
683
                         0,                                     \
684
684
                         0,                                     \
685
685
                         1);                                    \
1189
1189
   return src;
1190
1190
}
1191
1191
 
1192
 
static inline boolean
 
1192
static inline bool
1193
1193
ureg_src_is_undef( struct ureg_src src )
1194
1194
{
1195
1195
   return src.File == TGSI_FILE_NULL;
1196
1196
}
1197
1197
 
1198
 
static inline boolean
 
1198
static inline bool
1199
1199
ureg_dst_is_undef( struct ureg_dst dst )
1200
1200
{
1201
1201
   return dst.File == TGSI_FILE_NULL;