Lines Matching defs:bytes
228 unsigned char * bytes, unsigned num_bytes);
235 unsigned char * bytes;
244 r600_llvm_compile(mod, &bytes, &byte_count, r600_ctx->family , dump);
248 r600_bytecode_from_byte_stream(&shader_ctx, bytes, byte_count);
261 static uint32_t i32_from_byte_stream(unsigned char * bytes,
267 out |= bytes[(*bytes_read)++] << (8 * i);
272 static unsigned r600_src_from_byte_stream(unsigned char * bytes,
277 sel0 = bytes[bytes_read++];
278 sel1 = bytes[bytes_read++];
280 alu->src[src_idx].chan = bytes[bytes_read++];
281 alu->src[src_idx].neg = bytes[bytes_read++];
282 alu->src[src_idx].abs = bytes[bytes_read++];
283 alu->src[src_idx].rel = bytes[bytes_read++];
284 alu->src[src_idx].kc_bank = bytes[bytes_read++];
286 alu->src[src_idx].value |= bytes[bytes_read++] << (i * 8);
292 unsigned char * bytes, unsigned bytes_read)
300 bytes_read = r600_src_from_byte_stream(bytes, bytes_read,
304 alu.dst.sel = bytes[bytes_read++];
305 alu.dst.chan = bytes[bytes_read++];
306 alu.dst.clamp = bytes[bytes_read++];
307 alu.dst.write = bytes[bytes_read++];
308 alu.dst.rel = bytes[bytes_read++];
309 inst0 = bytes[bytes_read++];
310 inst1 = bytes[bytes_read++];
312 alu.last = bytes[bytes_read++];
313 alu.is_op3 = bytes[bytes_read++];
314 push_modifier = bytes[bytes_read++];
315 alu.pred_sel = bytes[bytes_read++];
316 alu.bank_swizzle = bytes[bytes_read++];
317 alu.bank_swizzle_force = bytes[bytes_read++];
318 alu.omod = bytes[bytes_read++];
319 alu.index_mode = bytes[bytes_read++];
374 unsigned char * bytes, unsigned bytes_read)
379 bytes_read = r600_src_from_byte_stream(bytes, bytes_read, &alu, 0);
380 inst = bytes[bytes_read++];
440 unsigned char * bytes, unsigned bytes_read)
444 tex.inst = bytes[bytes_read++];
445 tex.resource_id = bytes[bytes_read++];
446 tex.src_gpr = bytes[bytes_read++];
447 tex.src_rel = bytes[bytes_read++];
448 tex.dst_gpr = bytes[bytes_read++];
449 tex.dst_rel = bytes[bytes_read++];
450 tex.dst_sel_x = bytes[bytes_read++];
451 tex.dst_sel_y = bytes[bytes_read++];
452 tex.dst_sel_z = bytes[bytes_read++];
453 tex.dst_sel_w = bytes[bytes_read++];
454 tex.lod_bias = bytes[bytes_read++];
455 tex.coord_type_x = bytes[bytes_read++];
456 tex.coord_type_y = bytes[bytes_read++];
457 tex.coord_type_z = bytes[bytes_read++];
458 tex.coord_type_w = bytes[bytes_read++];
459 tex.offset_x = bytes[bytes_read++];
460 tex.offset_y = bytes[bytes_read++];
461 tex.offset_z = bytes[bytes_read++];
462 tex.sampler_id = bytes[bytes_read++];
463 tex.src_sel_x = bytes[bytes_read++];
464 tex.src_sel_y = bytes[bytes_read++];
465 tex.src_sel_z = bytes[bytes_read++];
466 tex.src_sel_w = bytes[bytes_read++];
474 unsigned char * bytes, unsigned bytes_read)
478 uint32_t word0 = i32_from_byte_stream(bytes, &bytes_read);
479 uint32_t word1 = i32_from_byte_stream(bytes, &bytes_read);
480 uint32_t word2 = i32_from_byte_stream(bytes, &bytes_read);
517 bytes, unsigned num_bytes)
522 char inst_type = bytes[bytes_read++];
525 bytes_read = r600_alu_from_byte_stream(ctx, bytes,
529 bytes_read = r600_tex_from_byte_stream(ctx, bytes,
533 bytes_read = r600_fc_from_byte_stream(ctx, bytes,
541 (bytes[bytes_read++] << (byte * 8));
547 bytes_read = r600_vtx_from_byte_stream(ctx, bytes,