summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915
diff options
context:
space:
mode:
authorStéphane Marchesin <[email protected]>2011-09-22 15:56:58 -0700
committerStéphane Marchesin <[email protected]>2011-09-22 19:26:32 -0700
commit79a0499369470a2a9b2cb5cfc83b1790283f4556 (patch)
treeb430287a12da9f859e5f1854f28498dfe144ace4 /src/gallium/drivers/i915
parent661b853f1172ec76333c2cbeac073420b5efb4c2 (diff)
i915g: Fix whitespace.
Diffstat (limited to 'src/gallium/drivers/i915')
-rw-r--r--src/gallium/drivers/i915/i915_fpc_translate.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/src/gallium/drivers/i915/i915_fpc_translate.c b/src/gallium/drivers/i915/i915_fpc_translate.c
index 05fae223503..641ab3c8107 100644
--- a/src/gallium/drivers/i915/i915_fpc_translate.c
+++ b/src/gallium/drivers/i915/i915_fpc_translate.c
@@ -49,24 +49,24 @@
* Simple pass-through fragment shader to use when we don't have
* a real shader (or it fails to compile for some reason).
*/
-static unsigned passthrough[] =
+static unsigned passthrough[] =
{
_3DSTATE_PIXEL_SHADER_PROGRAM | ((2*3)-1),
/* declare input color:
*/
- (D0_DCL |
- (REG_TYPE_T << D0_TYPE_SHIFT) |
- (T_DIFFUSE << D0_NR_SHIFT) |
+ (D0_DCL |
+ (REG_TYPE_T << D0_TYPE_SHIFT) |
+ (T_DIFFUSE << D0_NR_SHIFT) |
D0_CHANNEL_ALL),
0,
0,
/* move to output color:
*/
- (A0_MOV |
- (REG_TYPE_OC << A0_DEST_TYPE_SHIFT) |
- A0_DEST_CHANNEL_ALL |
+ (A0_MOV |
+ (REG_TYPE_OC << A0_DEST_TYPE_SHIFT) |
+ A0_DEST_CHANNEL_ALL |
(REG_TYPE_T << A0_SRC0_TYPE_SHIFT) |
(T_DIFFUSE << A0_SRC0_NR_SHIFT)),
0x01230000, /* .xyzw */
@@ -454,7 +454,7 @@ emit_simple_arith_swap2(struct i915_fp_compile *p,
* SIN, COS -- could use another taylor step?
* LIT -- results seem a little different to sw mesa
* LOG -- different to mesa on negative numbers, but this is conformant.
- */
+ */
static void
i915_translate_instruction(struct i915_fp_compile *p,
const struct i915_full_instruction *inst,
@@ -751,11 +751,11 @@ i915_translate_instruction(struct i915_fp_compile *p,
get_result_vector(p, &inst->Dst[0]),
flags, 0, swizzle(tmp, X, X, X, X), 0, 0);
break;
-
+
case TGSI_OPCODE_RET:
/* XXX: no-op? */
break;
-
+
case TGSI_OPCODE_RCP:
src0 = src_vector(p, &inst->Src[0], fs);
@@ -1244,11 +1244,11 @@ i915_fini_compile(struct i915_context *i915, struct i915_fp_compile *p)
ifs->program_len = program_size + decl_size;
memcpy(ifs->program,
- p->declarations,
+ p->declarations,
decl_size * sizeof(uint));
- memcpy(ifs->program + decl_size,
- p->program,
+ memcpy(ifs->program + decl_size,
+ p->program,
program_size * sizeof(uint));
}
}