radeon/llvm: Emit 2 bytes for vertex fetch offsets

This commit is contained in:
Tom Stellard 2012-06-01 16:08:41 -04:00
parent 85a68814ee
commit c108831d44
2 changed files with 3 additions and 1 deletions

View File

@ -458,7 +458,9 @@ static int r600_vtx_from_byte_stream(struct r600_shader_ctx *ctx,
vtx.num_format_all = bytes[bytes_read++];
vtx.format_comp_all = bytes[bytes_read++];
vtx.srf_mode_all = bytes[bytes_read++];
/* offset is 2 bytes wide */
vtx.offset = bytes[bytes_read++];
vtx.offset |= bytes[bytes_read++];
vtx.endian = bytes[bytes_read++];
if (r600_bytecode_add_vtx(ctx->bc, &vtx)) {

View File

@ -255,7 +255,7 @@ bool R600CodeEmitter::runOnMachineFunction(MachineFunction &MF) {
emitByte(0);
// offset
emitByte(0);
emitTwoBytes(0);
// endian
emitByte(0);