~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/r600/sfn/sfn_alu_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:
242
242
};
243
243
 
244
244
enum AluModifiers {
245
 
   alu_src0_neg,
246
 
   alu_src0_abs,
247
245
   alu_src0_rel,
248
 
   alu_src1_neg,
249
 
   alu_src1_abs,
250
246
   alu_src1_rel,
251
 
   alu_src2_neg,
252
247
   alu_src2_rel,
253
248
   alu_dst_clamp,
254
249
   alu_dst_rel,
265
260
   alu_lds_address,
266
261
   alu_no_schedule_bias,
267
262
   alu_64bit_op,
 
263
   alu_flag_none,
268
264
   alu_flag_count
269
265
};
270
266
 
314
310
   static constexpr int t = 16;
315
311
   static constexpr int a = 31;
316
312
 
317
 
   AluOp(int ns, int f, uint8_t um_r600, uint8_t um_r700, uint8_t um_eg, const char *n):
 
313
   AluOp(int ns, bool src_mod, bool clamp, bool fp64, uint8_t um_r600,
 
314
         uint8_t um_r700, uint8_t um_eg, const char *n):
318
315
       nsrc(ns),
319
 
       is_float(f),
 
316
       can_srcmod(src_mod),
 
317
       can_clamp(clamp),
 
318
       is_fp64(fp64),
320
319
       name(n)
321
320
   {
322
321
      unit_mask[0] = um_r600;
331
330
   }
332
331
 
333
332
   int nsrc : 4;
334
 
   int is_float : 1;
 
333
   int can_srcmod : 1;
 
334
   int can_clamp : 1;
 
335
   int is_fp64 : 1;
335
336
   uint8_t unit_mask[3];
336
337
   const char *name;
337
338
};
470
471
   int bank{0};
471
472
   int addr{0};
472
473
   int len{0};
 
474
   int index_mode{0};
473
475
   enum KCacheLockMode {
474
476
      free,
475
477
      lock_1,