summaryrefslogtreecommitdiff
path: root/assembler
diff options
context:
space:
mode:
authorDamien Lespiau <damien.lespiau@intel.com>2013-02-01 14:54:46 +0000
committerDamien Lespiau <damien.lespiau@intel.com>2013-03-04 15:54:42 +0000
commit2d8b92a24b2d6aebe2ced1f014b6c3129f86b91c (patch)
treefd227eb73e9ffcf36d6a40227eaf28d3d28c0f80 /assembler
parent2f502bcaaa06419b8a8cfb328d2fbd8dc982f771 (diff)
assembler: Remove trailing white space
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
Diffstat (limited to 'assembler')
-rw-r--r--assembler/brw_eu.c16
-rw-r--r--assembler/brw_eu_debug.c20
-rw-r--r--assembler/brw_eu_emit.c48
-rw-r--r--assembler/brw_eu_util.c18
-rw-r--r--assembler/disasm-main.c2
-rw-r--r--assembler/gen4asm.h4
-rw-r--r--assembler/main.c2
7 files changed, 55 insertions, 55 deletions
diff --git a/assembler/brw_eu.c b/assembler/brw_eu.c
index 69f088df..a9afc820 100644
--- a/assembler/brw_eu.c
+++ b/assembler/brw_eu.c
@@ -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;
diff --git a/assembler/brw_eu_debug.c b/assembler/brw_eu_debug.c
index 1e4f9330..b4460076 100644
--- a/assembler/brw_eu_debug.c
+++ b/assembler/brw_eu_debug.c
@@ -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]);
}
}
diff --git a/assembler/brw_eu_emit.c b/assembler/brw_eu_emit.c
index ae570c7f..a1e96d13 100644
--- a/assembler/brw_eu_emit.c
+++ b/assembler/brw_eu_emit.c
@@ -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);
}
diff --git a/assembler/brw_eu_util.c b/assembler/brw_eu_util.c
index 20376349..e3bfbc7a 100644
--- a/assembler/brw_eu_util.c
+++ b/assembler/brw_eu_util.c
@@ -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 );
}
diff --git a/assembler/disasm-main.c b/assembler/disasm-main.c
index 87e67377..5bc75afc 100644
--- a/assembler/disasm-main.c
+++ b/assembler/disasm-main.c
@@ -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);
diff --git a/assembler/gen4asm.h b/assembler/gen4asm.h
index 49baf9dc..a708c526 100644
--- a/assembler/gen4asm.h
+++ b/assembler/gen4asm.h
@@ -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 {
diff --git a/assembler/main.c b/assembler/main.c
index f1d78d07..05ca337c 100644
--- a/assembler/main.c
+++ b/assembler/main.c
@@ -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 --;