HomeSort by: relevance | last modified time | path
    Searched defs:atomic (Results 1 - 25 of 34) sorted by relevancy

1 2

  /xsrc/external/mit/MesaLib.old/dist/src/mesa/state_tracker/
st_atom_atomicbuf.c 77 struct gl_active_atomic_buffer *atomic = local
81 st_binding_to_sb(&st->ctx->AtomicBufferBindings[atomic->Binding], &sb);
84 atomic->Binding, 1, &sb, 0x1);
  /xsrc/external/mit/xf86-video-intel/dist/src/sna/
atomic.h 36 int atomic; member in struct:__anon7036
39 # define atomic_read(x) ((x)->atomic)
40 # define atomic_set(x, val) ((x)->atomic = (val))
41 # define atomic_inc(x) ((void) __sync_fetch_and_add (&(x)->atomic, 1))
42 # define atomic_dec_and_test(x) (__sync_fetch_and_add (&(x)->atomic, -1) == 1)
43 # define atomic_add(x, v) ((void) __sync_add_and_fetch(&(x)->atomic, (v)))
44 # define atomic_dec(x, v) ((void) __sync_sub_and_fetch(&(x)->atomic, (v)))
45 # define atomic_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (&(x)->atomic, oldv, newv)
55 AO_t atomic; member in struct:__anon7037
58 # define atomic_read(x) AO_load_full(&(x)->atomic)
73 typedef struct { uint_t atomic; } atomic_t; member in struct:__anon7038
    [all...]
  /xsrc/external/mit/xf86-video-intel-2014/dist/src/sna/
atomic.h 36 int atomic; member in struct:__anon7905
39 # define atomic_read(x) ((x)->atomic)
40 # define atomic_set(x, val) ((x)->atomic = (val))
41 # define atomic_inc(x) ((void) __sync_fetch_and_add (&(x)->atomic, 1))
42 # define atomic_dec_and_test(x) (__sync_fetch_and_add (&(x)->atomic, -1) == 1)
43 # define atomic_add(x, v) ((void) __sync_add_and_fetch(&(x)->atomic, (v)))
44 # define atomic_dec(x, v) ((void) __sync_sub_and_fetch(&(x)->atomic, (v)))
45 # define atomic_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (&(x)->atomic, oldv, newv)
55 AO_t atomic; member in struct:__anon7906
58 # define atomic_read(x) AO_load_full(&(x)->atomic)
73 typedef struct { uint_t atomic; } atomic_t; member in struct:__anon7907
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/mesa/state_tracker/
st_atom_atomicbuf.c 77 /* For !has_hw_atomics, the atomic counters have been rewritten to be above
83 struct gl_active_atomic_buffer *atomic = local
87 st_binding_to_sb(&st->ctx->AtomicBufferBindings[atomic->Binding], &sb);
90 buffer_base + atomic->Binding, 1, &sb, 0x1);
91 used_bindings = MAX2(atomic->Binding + 1, used_bindings);
  /xsrc/external/mit/libdrm/dist/
xf86atomic.h 31 * Private definitions for atomic operations
42 int atomic; member in struct:__anon6304
45 # define atomic_read(x) ((x)->atomic)
46 # define atomic_set(x, val) ((x)->atomic = (val))
47 # define atomic_inc(x) ((void) __sync_fetch_and_add (&(x)->atomic, 1))
48 # define atomic_inc_return(x) (__sync_add_and_fetch (&(x)->atomic, 1))
49 # define atomic_dec_and_test(x) (__sync_add_and_fetch (&(x)->atomic, -1) == 0)
50 # define atomic_add(x, v) ((void) __sync_add_and_fetch(&(x)->atomic, (v)))
51 # define atomic_dec(x, v) ((void) __sync_sub_and_fetch(&(x)->atomic, (v)))
52 # define atomic_cmpxchg(x, oldv, newv) __sync_val_compare_and_swap (&(x)->atomic, oldv, newv
63 AO_t atomic; member in struct:__anon6305
88 typedef struct { volatile LIBDRM_ATOMIC_TYPE atomic; } atomic_t; member in struct:__anon6306
    [all...]
xf86drmMode.c 1520 struct drm_mode_atomic atomic; local
1540 memclear(atomic);
1549 atomic.count_objs++;
1568 objs_ptr = drmMalloc(atomic.count_objs * sizeof objs_ptr[0]);
1574 count_props_ptr = drmMalloc(atomic.count_objs * sizeof count_props_ptr[0]);
1605 atomic.flags = flags;
1606 atomic.objs_ptr = VOID2U64(objs_ptr);
1607 atomic.count_props_ptr = VOID2U64(count_props_ptr);
1608 atomic.props_ptr = VOID2U64(props_ptr);
1609 atomic.prop_values_ptr = VOID2U64(prop_values_ptr)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/compiler/nir/
nir_intrinsics.py 516 # Atomic counters
521 def atomic(name, flags=[]): function
533 atomic("atomic_counter_inc")
534 atomic("atomic_counter_pre_dec")
535 atomic("atomic_counter_post_dec")
536 atomic("atomic_counter_read", flags=[CAN_ELIMINATE])
546 # Image load, store and atomic intrinsics.
560 # argument with the value to be written, and image atomic operations take
622 # atomic intrinsics
624 # All of these atomic memory operations read a value from memory, compute a ne
    [all...]
nir_lower_io.c 69 unreachable("Invalid SSBO atomic");
94 unreachable("Invalid SSBO atomic");
119 unreachable("Invalid shared atomic");
1664 nir_intrinsic_instr *atomic = nir_intrinsic_instr_create(b->shader, op); local
1668 atomic->src[src++] = nir_src_for_ssa(addr_to_global(b, addr, addr_format));
1671 atomic->src[src++] = nir_src_for_ssa(addr_to_offset(b, addr, addr_format));
1673 atomic->src[src++] = nir_src_for_ssa(addr_to_index(b, addr, addr_format));
1674 atomic->src[src++] = nir_src_for_ssa(addr_to_offset(b, addr, addr_format));
1677 atomic->src[src++] = nir_src_for_ssa(intrin->src[1 + i].ssa);
1683 if (nir_intrinsic_has_access(atomic))
    [all...]
  /xsrc/external/mit/fontconfig/dist/src/
fcatomic.c 28 * Lock cache and configuration files for atomic update
85 FcAtomic *atomic = malloc (total_len); local
86 if (!atomic)
89 atomic->file = (FcChar8 *) (atomic + 1);
90 strcpy ((char *) atomic->file, (char *) file);
92 atomic->new = atomic->file + file_len + 1;
93 strcpy ((char *) atomic->new, (char *) file);
94 strcat ((char *) atomic->new, NEW_NAME)
    [all...]
fccache.c 1381 FcAtomic *atomic; local
1456 atomic = FcAtomicCreate ((FcChar8 *)cache_hashed);
1457 if (!atomic)
1460 if (!FcAtomicLock (atomic))
1463 fd = FcOpen((char *)FcAtomicNewFile (atomic), O_RDWR | O_CREAT | O_BINARY, 0666);
1488 if (!FcAtomicReplaceOrig(atomic))
1513 FcAtomicUnlock (atomic);
1514 FcAtomicDestroy (atomic);
1520 FcAtomicUnlock (atomic);
1522 FcAtomicDestroy (atomic);
1775 FcAtomic *atomic; local
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/freedreno/ir3/
ir3_a4xx.c 99 * SSBO atomic intrinsics
101 * All of the SSBO atomic memory operations read a value from memory,
109 * 1: The byte offset into the SSBO buffer of the variable that the atomic
111 * 2: The data parameter to the atomic function (i.e. the value to add
124 struct ir3_instruction *atomic; local
138 atomic = ir3_ATOMIC_ADD_G(b, ssbo, 0, data, 0, src3, 0, byte_offset, 0);
141 atomic = ir3_ATOMIC_MIN_G(b, ssbo, 0, data, 0, src3, 0, byte_offset, 0);
145 atomic = ir3_ATOMIC_MIN_G(b, ssbo, 0, data, 0, src3, 0, byte_offset, 0);
148 atomic = ir3_ATOMIC_MAX_G(b, ssbo, 0, data, 0, src3, 0, byte_offset, 0);
152 atomic = ir3_ATOMIC_MAX_G(b, ssbo, 0, data, 0, src3, 0, byte_offset, 0)
299 struct ir3_instruction *atomic, *src0, *src1, *src2; local
    [all...]
ir3_a6xx.c 36 * atomic instructions (used for both SSBO and image) use a new instruction
93 * SSBO atomic intrinsics
95 * All of the SSBO atomic memory operations read a value from memory,
103 * 1: The offset into the SSBO buffer of the variable that the atomic
105 * 2: The data parameter to the atomic function (i.e. the value to add
113 struct ir3_instruction *atomic, *ibo, *src0, *src1, *data, *dummy; local
147 atomic = ir3_ATOMIC_ADD_G(b, ibo, 0, src0, 0, src1, 0);
150 atomic = ir3_ATOMIC_MIN_G(b, ibo, 0, src0, 0, src1, 0);
154 atomic = ir3_ATOMIC_MIN_G(b, ibo, 0, src0, 0, src1, 0);
157 atomic = ir3_ATOMIC_MAX_G(b, ibo, 0, src0, 0, src1, 0)
258 struct ir3_instruction *atomic, *ibo, *src0, *src1, *dummy; local
    [all...]
ir3_compiler_nir.c 991 * CS shared variable atomic intrinsics
993 * All of the shared variable atomic memory operations read a value from
1000 * 0: The offset into the shared variable storage region that the atomic
1002 * 1: The data parameter to the atomic function (i.e. the value to add
1010 struct ir3_instruction *atomic, *src0, *src1; local
1018 atomic = ir3_ATOMIC_ADD(b, src0, 0, src1, 0);
1021 atomic = ir3_ATOMIC_MIN(b, src0, 0, src1, 0);
1025 atomic = ir3_ATOMIC_MIN(b, src0, 0, src1, 0);
1028 atomic = ir3_ATOMIC_MAX(b, src0, 0, src1, 0);
1032 atomic = ir3_ATOMIC_MAX(b, src0, 0, src1, 0)
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/nir/
nir_intrinsics.py 290 # Atomic counters
295 def atomic(name, flags=[]): function
307 atomic("atomic_counter_inc")
308 atomic("atomic_counter_pre_dec")
309 atomic("atomic_counter_post_dec")
310 atomic("atomic_counter_read", flags=[CAN_ELIMINATE])
320 # Image load, store and atomic intrinsics.
334 # argument with the value to be written, and image atomic operations take
395 # variable atomic intrinsics
397 # All of these variable atomic memory operations read a value from memory
    [all...]
nir_lower_io.c 67 unreachable("Invalid SSBO atomic");
92 unreachable("Invalid SSBO atomic");
339 unreachable("Invalid atomic");
342 nir_intrinsic_instr *atomic = local
345 nir_intrinsic_set_base(atomic, var->data.driver_location);
347 atomic->src[0] = nir_src_for_ssa(offset);
351 nir_src_copy(&atomic->src[i], &intrin->src[i], atomic);
354 return atomic;
859 nir_intrinsic_instr *atomic = nir_intrinsic_instr_create(b->shader, op) local
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/freedreno/ir3/
ir3_a4xx.c 110 * SSBO atomic intrinsics
112 * All of the SSBO atomic memory operations read a value from memory,
120 * 1: The offset into the SSBO buffer of the variable that the atomic
122 * 2: The data parameter to the atomic function (i.e. the value to add
130 struct ir3_instruction *atomic, *ssbo, *src0, *src1, *src2, *byte_offset, local
156 atomic = ir3_ATOMIC_ADD_G(b, ssbo, 0, src0, 0, src1, 0, src2, 0);
159 atomic = ir3_ATOMIC_MIN_G(b, ssbo, 0, src0, 0, src1, 0, src2, 0);
163 atomic = ir3_ATOMIC_MIN_G(b, ssbo, 0, src0, 0, src1, 0, src2, 0);
166 atomic = ir3_ATOMIC_MAX_G(b, ssbo, 0, src0, 0, src1, 0, src2, 0);
170 atomic = ir3_ATOMIC_MAX_G(b, ssbo, 0, src0, 0, src1, 0, src2, 0)
299 struct ir3_instruction *atomic, *image, *src0, *src1, *src2; local
    [all...]
ir3_a6xx.c 36 * atomic instructions (used for both SSBO and image) use a new instruction
98 * SSBO atomic intrinsics
100 * All of the SSBO atomic memory operations read a value from memory,
108 * 1: The offset into the SSBO buffer of the variable that the atomic
110 * 2: The data parameter to the atomic function (i.e. the value to add
118 struct ir3_instruction *atomic, *ibo, *src0, *src1, *data, *dummy; local
158 atomic = ir3_ATOMIC_ADD_G(b, ibo, 0, src0, 0, src1, 0);
161 atomic = ir3_ATOMIC_MIN_G(b, ibo, 0, src0, 0, src1, 0);
165 atomic = ir3_ATOMIC_MIN_G(b, ibo, 0, src0, 0, src1, 0);
168 atomic = ir3_ATOMIC_MAX_G(b, ibo, 0, src0, 0, src1, 0)
240 struct ir3_instruction *atomic, *ibo, *src0, *src1, *dummy; local
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r600/sfn/
sfn_emitssboinstruction.cpp 495 auto atomic = new RatInstruction(cf_mem_rat, opcode, m_rat_return_address, out_vec, imageid + m_ssbo_image_offset, local
497 emit_instruction(atomic);
  /xsrc/external/mit/MesaLib/dist/src/microsoft/compiler/
dxil_nir.c 768 nir_intrinsic_instr *atomic = nir_intrinsic_instr_create(b->shader, dxil_op); local
769 atomic->src[0] = nir_src_for_ssa(index);
771 atomic->src[1] = nir_src_for_ssa(intr->src[1].ssa);
774 atomic->src[2] = nir_src_for_ssa(intr->src[2].ssa);
776 atomic->num_components = 0;
777 nir_ssa_dest_init(&atomic->instr, &atomic->dest, 1, 32, NULL);
779 nir_builder_instr_insert(b, &atomic->instr);
780 nir_ssa_def_rewrite_uses(&intr->dest.ssa, &atomic->dest.ssa);
806 #define ATOMIC(op)
    [all...]
  /xsrc/external/mit/MesaLib.old/dist/src/amd/common/
ac_llvm_build.h 509 enum ac_atomic_op atomic : 4; /* for the ac_image_atomic opcode */ member in struct:ac_image_args
  /xsrc/external/mit/MesaLib.old/dist/src/compiler/spirv/
vtn_variables.c 607 const struct glsl_type *atomic = local
610 return glsl_array_type(atomic, glsl_get_length(type),
2125 * that is an atomic uint.
spirv_to_nir.c 2462 vtn_fail_with_opcode("Invalid SPIR-V atomic", opcode);
2697 vtn_fail_with_opcode("Invalid SSBO atomic", opcode);
2723 * moment Atomic Counter support is needed for ARB_spirv support, so is
2724 * only need to support GLSL Atomic Counters that are uints and don't
2727 unreachable("Invalid uniform atomic");
2754 vtn_fail_with_opcode("Invalid shared atomic", opcode);
2781 vtn_fail_with_opcode("Invalid shared atomic", opcode);
2786 * Handles shared atomics, ssbo atomics and atomic counters.
2793 nir_intrinsic_instr *atomic; local
2819 vtn_fail_with_opcode("Invalid SPIR-V atomic", opcode)
    [all...]
  /xsrc/external/mit/MesaLib/dist/src/amd/llvm/
ac_llvm_build.h 406 enum ac_atomic_op atomic; /* for the ac_image_atomic opcode */ member in struct:ac_image_args
  /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/nir/
nir_to_tgsi.c 551 /* XXX: nv50 uses the atomic flag to set caching for (lowered) atomic
554 bool atomic = false; local
555 ureg_DECL_buffer(c->ureg, i, atomic);
1426 case nir_var_uniform: { /* HW atomic buffers */
  /xsrc/external/mit/MesaLib/dist/src/gallium/auxiliary/tgsi/
tgsi_ureg.c 184 bool atomic; member in struct:ureg_program::__anon1072
605 /* Returns a new hw atomic register. Keep track of which have been
806 bool atomic)
817 ureg->buffer[i].atomic = atomic;
1748 bool atomic)
1757 out[0].decl.Atomic = atomic;
1984 emit_decl_buffer(ureg, ureg->buffer[i].index, ureg->buffer[i].atomic);

Completed in 29 milliseconds

1 2