mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-07 07:56:17 +00:00
assembler: Remove trailing white space
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
This commit is contained in:
parent
2f502bcaaa
commit
2d8b92a24b
@ -2,7 +2,7 @@
|
||||
Copyright (C) Intel Corp. 2006. All Rights Reserved.
|
||||
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
|
||||
develop this 3D driver.
|
||||
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
@ -10,11 +10,11 @@
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
|
||||
The above copyright notice and this permission notice (including the
|
||||
next paragraph) shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
@ -22,13 +22,13 @@
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
**********************************************************************/
|
||||
/*
|
||||
* Authors:
|
||||
* Keith Whitwell <keith@tungstengraphics.com>
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include <string.h>
|
||||
|
||||
@ -78,7 +78,7 @@ void brw_set_predicate_control_flag_value( struct brw_compile *p, GLuint value )
|
||||
}
|
||||
|
||||
p->current->header.predicate_control = BRW_PREDICATE_NORMAL;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void brw_set_predicate_control( struct brw_compile *p, GLuint pc )
|
||||
@ -165,7 +165,7 @@ void brw_push_insn_state( struct brw_compile *p )
|
||||
assert(p->current != &p->stack[BRW_EU_MAX_INSN_STACK-1]);
|
||||
memcpy(p->current+1, p->current, sizeof(struct brw_instruction));
|
||||
p->compressed_stack[p->current - p->stack] = p->compressed;
|
||||
p->current++;
|
||||
p->current++;
|
||||
}
|
||||
|
||||
void brw_pop_insn_state( struct brw_compile *p )
|
||||
@ -203,7 +203,7 @@ brw_init_compile(struct brw_context *brw, struct brw_compile *p, void *mem_ctx)
|
||||
brw_set_mask_control(p, BRW_MASK_ENABLE); /* what does this do? */
|
||||
brw_set_saturate(p, 0);
|
||||
brw_set_compression_control(p, BRW_COMPRESSION_NONE);
|
||||
brw_set_predicate_control_flag_value(p, 0xff);
|
||||
brw_set_predicate_control_flag_value(p, 0xff);
|
||||
|
||||
/* Set up control flow stack */
|
||||
p->if_stack_depth = 0;
|
||||
|
@ -2,7 +2,7 @@
|
||||
Copyright (C) Intel Corp. 2006. All Rights Reserved.
|
||||
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
|
||||
develop this 3D driver.
|
||||
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
@ -10,11 +10,11 @@
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
|
||||
The above copyright notice and this permission notice (including the
|
||||
next paragraph) shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
@ -22,13 +22,13 @@
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
**********************************************************************/
|
||||
/*
|
||||
* Authors:
|
||||
* Keith Whitwell <keith@tungstengraphics.com>
|
||||
*/
|
||||
|
||||
|
||||
#include "brw_eu.h"
|
||||
|
||||
void brw_print_reg( struct brw_reg hwreg )
|
||||
@ -51,10 +51,10 @@ void brw_print_reg( struct brw_reg hwreg )
|
||||
"f"
|
||||
};
|
||||
|
||||
printf("%s%s",
|
||||
printf("%s%s",
|
||||
hwreg.abs ? "abs/" : "",
|
||||
hwreg.negate ? "-" : "");
|
||||
|
||||
|
||||
if (hwreg.file == BRW_GENERAL_REGISTER_FILE &&
|
||||
hwreg.nr % 2 == 0 &&
|
||||
hwreg.subnr == 0 &&
|
||||
@ -69,7 +69,7 @@ void brw_print_reg( struct brw_reg hwreg )
|
||||
hwreg.vstride == BRW_VERTICAL_STRIDE_0 &&
|
||||
hwreg.width == BRW_WIDTH_1 &&
|
||||
hwreg.hstride == BRW_HORIZONTAL_STRIDE_0 &&
|
||||
hwreg.type == BRW_REGISTER_TYPE_F) {
|
||||
hwreg.type == BRW_REGISTER_TYPE_F) {
|
||||
/* "scalar" register */
|
||||
printf("scl%d.%d", hwreg.nr, hwreg.subnr / 4);
|
||||
}
|
||||
@ -77,13 +77,13 @@ void brw_print_reg( struct brw_reg hwreg )
|
||||
printf("imm %f", hwreg.dw1.f);
|
||||
}
|
||||
else {
|
||||
printf("%s%d.%d<%d;%d,%d>:%s",
|
||||
printf("%s%d.%d<%d;%d,%d>:%s",
|
||||
file[hwreg.file],
|
||||
hwreg.nr,
|
||||
hwreg.subnr / type_sz(hwreg.type),
|
||||
hwreg.vstride ? (1<<(hwreg.vstride-1)) : 0,
|
||||
1<<hwreg.width,
|
||||
hwreg.hstride ? (1<<(hwreg.hstride-1)) : 0,
|
||||
hwreg.hstride ? (1<<(hwreg.hstride-1)) : 0,
|
||||
type[hwreg.type]);
|
||||
}
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
Copyright (C) Intel Corp. 2006. All Rights Reserved.
|
||||
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
|
||||
develop this 3D driver.
|
||||
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
@ -10,11 +10,11 @@
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
|
||||
The above copyright notice and this permission notice (including the
|
||||
next paragraph) shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
@ -22,13 +22,13 @@
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
**********************************************************************/
|
||||
/*
|
||||
* Authors:
|
||||
* Keith Whitwell <keith@tungstengraphics.com>
|
||||
*/
|
||||
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "brw_context.h"
|
||||
@ -115,7 +115,7 @@ brw_set_dest(struct brw_compile *p, struct brw_instruction *insn,
|
||||
insn->bits1.da1.dest_reg_type = dest.type;
|
||||
insn->bits1.da1.dest_address_mode = dest.address_mode;
|
||||
|
||||
if (dest.address_mode == BRW_ADDRESS_DIRECT) {
|
||||
if (dest.address_mode == BRW_ADDRESS_DIRECT) {
|
||||
insn->bits1.da1.dest_reg_nr = dest.nr;
|
||||
|
||||
if (insn->header.access_mode == BRW_ALIGN_1) {
|
||||
@ -276,7 +276,7 @@ brw_set_src0(struct brw_compile *p, struct brw_instruction *insn,
|
||||
|
||||
if (reg.file == BRW_IMMEDIATE_VALUE) {
|
||||
insn->bits3.ud = reg.dw1.ud;
|
||||
|
||||
|
||||
/* Required to set some fields in src1 as well:
|
||||
*/
|
||||
|
||||
@ -288,7 +288,7 @@ brw_set_src0(struct brw_compile *p, struct brw_instruction *insn,
|
||||
insn->bits1.da1.src1_reg_type = reg.type;
|
||||
*/
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
if (reg.address_mode == BRW_ADDRESS_DIRECT) {
|
||||
if (insn->header.access_mode == BRW_ALIGN_1) {
|
||||
@ -304,7 +304,7 @@ brw_set_src0(struct brw_compile *p, struct brw_instruction *insn,
|
||||
insn->bits2.ia1.src0_subreg_nr = reg.subnr;
|
||||
|
||||
if (insn->header.access_mode == BRW_ALIGN_1) {
|
||||
insn->bits2.ia1.src0_indirect_offset = reg.dw1.bits.indirect_offset;
|
||||
insn->bits2.ia1.src0_indirect_offset = reg.dw1.bits.indirect_offset;
|
||||
}
|
||||
else {
|
||||
insn->bits2.ia16.src0_subreg_nr = reg.dw1.bits.indirect_offset;
|
||||
@ -316,7 +316,7 @@ brw_set_src0(struct brw_compile *p, struct brw_instruction *insn,
|
||||
/* FIXME: While this is correct, if the assembler uses that code path
|
||||
* the opcode generated are different and thus needs a validation
|
||||
* pass.
|
||||
if (reg.width == BRW_WIDTH_1 &&
|
||||
if (reg.width == BRW_WIDTH_1 &&
|
||||
insn->header.execution_size == BRW_EXECUTE_1) {
|
||||
insn->bits2.da1.src0_horiz_stride = BRW_HORIZONTAL_STRIDE_0;
|
||||
insn->bits2.da1.src0_width = BRW_WIDTH_1;
|
||||
@ -404,7 +404,7 @@ void brw_set_src1(struct brw_compile *p,
|
||||
/* FIXME: While this is correct, if the assembler uses that code path
|
||||
* the opcode generated are different and thus needs a validation
|
||||
* pass.
|
||||
if (reg.width == BRW_WIDTH_1 &&
|
||||
if (reg.width == BRW_WIDTH_1 &&
|
||||
insn->header.execution_size == BRW_EXECUTE_1) {
|
||||
insn->bits3.da1.src1_horiz_stride = BRW_HORIZONTAL_STRIDE_0;
|
||||
insn->bits3.da1.src1_width = BRW_WIDTH_1;
|
||||
@ -766,7 +766,7 @@ brw_next_insn(struct brw_compile *p, GLuint opcode)
|
||||
insn = &p->store[p->nr_insn++];
|
||||
memcpy(insn, p->current, sizeof(*insn));
|
||||
|
||||
/* Reset this one-shot flag:
|
||||
/* Reset this one-shot flag:
|
||||
*/
|
||||
|
||||
if (p->current->header.destreg__conditionalmod) {
|
||||
@ -795,7 +795,7 @@ static struct brw_instruction *brw_alu2(struct brw_compile *p,
|
||||
struct brw_reg src0,
|
||||
struct brw_reg src1 )
|
||||
{
|
||||
struct brw_instruction *insn = next_insn(p, opcode);
|
||||
struct brw_instruction *insn = next_insn(p, opcode);
|
||||
brw_set_dest(p, insn, dest);
|
||||
brw_set_src0(p, insn, src0);
|
||||
brw_set_src1(p, insn, src1);
|
||||
@ -1084,7 +1084,7 @@ struct brw_instruction *brw_MUL(struct brw_compile *p,
|
||||
|
||||
void brw_NOP(struct brw_compile *p)
|
||||
{
|
||||
struct brw_instruction *insn = next_insn(p, BRW_OPCODE_NOP);
|
||||
struct brw_instruction *insn = next_insn(p, BRW_OPCODE_NOP);
|
||||
brw_set_dest(p, insn, retype(brw_vec4_grf(0,0), BRW_REGISTER_TYPE_UD));
|
||||
brw_set_src0(p, insn, retype(brw_vec4_grf(0,0), BRW_REGISTER_TYPE_UD));
|
||||
brw_set_src1(p, insn, brw_imm_ud(0x0));
|
||||
@ -1098,7 +1098,7 @@ void brw_NOP(struct brw_compile *p)
|
||||
* Comparisons, if/else/endif
|
||||
*/
|
||||
|
||||
struct brw_instruction *brw_JMPI(struct brw_compile *p,
|
||||
struct brw_instruction *brw_JMPI(struct brw_compile *p,
|
||||
struct brw_reg dest,
|
||||
struct brw_reg src0,
|
||||
struct brw_reg src1)
|
||||
@ -1736,7 +1736,7 @@ void brw_CMP(struct brw_compile *p,
|
||||
|
||||
/* Make it so that future instructions will use the computed flag
|
||||
* value until brw_set_predicate_control_flag_value() is called
|
||||
* again.
|
||||
* again.
|
||||
*/
|
||||
if (dest.file == BRW_ARCHITECTURE_REGISTER_FILE &&
|
||||
dest.nr == 0) {
|
||||
@ -2211,7 +2211,7 @@ void brw_SAMPLE(struct brw_compile *p,
|
||||
/*printf("%s: zero writemask??\n", __FUNCTION__); */
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
/* Hardware doesn't do destination dependency checking on send
|
||||
* instructions properly. Add a workaround which generates the
|
||||
* dependency by other means. In practice it seems like this bug
|
||||
@ -2260,11 +2260,11 @@ void brw_SAMPLE(struct brw_compile *p,
|
||||
|
||||
brw_MOV(p, retype(m1, BRW_REGISTER_TYPE_UD),
|
||||
retype(brw_vec8_grf(0,0), BRW_REGISTER_TYPE_UD));
|
||||
brw_MOV(p, get_element_ud(m1, 2), brw_imm_ud(newmask << 12));
|
||||
brw_MOV(p, get_element_ud(m1, 2), brw_imm_ud(newmask << 12));
|
||||
|
||||
brw_pop_insn_state(p);
|
||||
|
||||
src0 = retype(brw_null_reg(), BRW_REGISTER_TYPE_UW);
|
||||
src0 = retype(brw_null_reg(), BRW_REGISTER_TYPE_UW);
|
||||
dest = offset(dest, dst_offset);
|
||||
|
||||
/* For 16-wide dispatch, masked channels are skipped in the
|
||||
@ -2278,7 +2278,7 @@ void brw_SAMPLE(struct brw_compile *p,
|
||||
|
||||
{
|
||||
struct brw_instruction *insn;
|
||||
|
||||
|
||||
gen6_resolve_implied_move(p, &src0, msg_reg_nr);
|
||||
|
||||
insn = next_insn(p, BRW_OPCODE_SEND);
|
||||
@ -2293,7 +2293,7 @@ void brw_SAMPLE(struct brw_compile *p,
|
||||
binding_table_index,
|
||||
sampler,
|
||||
msg_type,
|
||||
response_length,
|
||||
response_length,
|
||||
msg_length,
|
||||
header_present,
|
||||
simd_mode,
|
||||
@ -2363,9 +2363,9 @@ void brw_urb_WRITE(struct brw_compile *p,
|
||||
allocate,
|
||||
used,
|
||||
msg_length,
|
||||
response_length,
|
||||
eot,
|
||||
writes_complete,
|
||||
response_length,
|
||||
eot,
|
||||
writes_complete,
|
||||
offset,
|
||||
swizzle);
|
||||
}
|
||||
|
@ -2,7 +2,7 @@
|
||||
Copyright (C) Intel Corp. 2006. All Rights Reserved.
|
||||
Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
|
||||
develop this 3D driver.
|
||||
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
@ -10,11 +10,11 @@
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
|
||||
The above copyright notice and this permission notice (including the
|
||||
next paragraph) shall be included in all copies or substantial
|
||||
portions of the Software.
|
||||
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
@ -22,29 +22,29 @@
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
|
||||
**********************************************************************/
|
||||
/*
|
||||
* Authors:
|
||||
* Keith Whitwell <keith@tungstengraphics.com>
|
||||
*/
|
||||
|
||||
|
||||
|
||||
#include "brw_context.h"
|
||||
#include "brw_defines.h"
|
||||
#include "brw_eu.h"
|
||||
|
||||
|
||||
void brw_math_invert( struct brw_compile *p,
|
||||
void brw_math_invert( struct brw_compile *p,
|
||||
struct brw_reg dst,
|
||||
struct brw_reg src)
|
||||
{
|
||||
brw_math( p,
|
||||
brw_math( p,
|
||||
dst,
|
||||
BRW_MATH_FUNCTION_INV,
|
||||
BRW_MATH_FUNCTION_INV,
|
||||
0,
|
||||
src,
|
||||
BRW_MATH_PRECISION_FULL,
|
||||
BRW_MATH_PRECISION_FULL,
|
||||
BRW_MATH_DATA_VECTOR );
|
||||
}
|
||||
|
||||
|
@ -165,7 +165,7 @@ int main(int argc, char **argv)
|
||||
exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
for (inst = program->first; inst; inst = inst->next)
|
||||
brw_disasm (output, &inst->insn.gen, gen);
|
||||
exit (0);
|
||||
|
@ -106,7 +106,7 @@ struct options {
|
||||
|
||||
struct region {
|
||||
int vert_stride, width, horiz_stride;
|
||||
int is_default;
|
||||
int is_default;
|
||||
};
|
||||
struct regtype {
|
||||
int type;
|
||||
@ -114,7 +114,7 @@ struct regtype {
|
||||
};
|
||||
|
||||
/**
|
||||
* This structure is the internal representation of source operands in the
|
||||
* This structure is the internal representation of source operands in the
|
||||
* parser.
|
||||
*/
|
||||
struct src_operand {
|
||||
|
@ -457,7 +457,7 @@ int main(int argc, char **argv)
|
||||
// this is a branch instruction with one offset argument
|
||||
int offset = reloc->first_reloc_offset;
|
||||
/* bspec: Unlike other flow control instructions, the offset used by JMPI is relative to the incremented instruction pointer rather than the IP value for the instruction itself. */
|
||||
|
||||
|
||||
int is_jmpi = inst->header.opcode == BRW_OPCODE_JMPI; // target relative to the post-incremented IP, so delta == 1 if JMPI
|
||||
if(is_jmpi)
|
||||
offset --;
|
||||
|
Loading…
x
Reference in New Issue
Block a user