summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 62b4103)
raw | patch | inline | side by side (parent: 62b4103)
author | Eric Anholt <eric@anholt.net> | |
Tue, 20 Dec 2011 23:19:24 +0000 (15:19 -0800) | ||
committer | Eric Anholt <eric@anholt.net> | |
Fri, 27 Jan 2012 21:21:19 +0000 (13:21 -0800) |
Similar to BR00, count was always 1 and was always an index, not a count.
intel/intel_decode.c | patch | blob | history |
diff --git a/intel/intel_decode.c b/intel/intel_decode.c
index 5a4246d6c9e450632e06cbb57e37ec173a71dbb1..0c3ec3cb504c9ec59e638a847c8e9d3cb3843186 100644 (file)
--- a/intel/intel_decode.c
+++ b/intel/intel_decode.c
(ctx->data[0] >> 11) & 1);
}
-static void decode_2d_br01(uint32_t *data, uint32_t count, uint32_t hw_offset)
+static void
+decode_2d_br01(struct drm_intel_decode *ctx)
{
const char *format;
- switch ((data[count] >> 24) & 0x3) {
+ switch ((ctx->data[1] >> 24) & 0x3) {
case 0:
format = "8";
break;
@@ -299,14 +300,15 @@ static void decode_2d_br01(uint32_t *data, uint32_t count, uint32_t hw_offset)
break;
}
- instr_out(data, hw_offset, count, "format %s, pitch %d, rop 0x%02x, "
+ instr_out(ctx->data, ctx->hw_offset, 1,
+ "format %s, pitch %d, rop 0x%02x, "
"clipping %sabled, %s%s \n",
format,
- (short)(data[count] & 0xffff),
- (data[count] >> 16) & 0xff,
- data[count] & (1 << 30) ? "en" : "dis",
- data[count] & (1 << 31) ? "solid pattern enabled, " : "",
- data[count] & (1 << 31) ?
+ (short)(ctx->data[1] & 0xffff),
+ (ctx->data[1] >> 16) & 0xff,
+ ctx->data[1] & (1 << 30) ? "en" : "dis",
+ ctx->data[1] & (1 << 31) ? "solid pattern enabled, " : "",
+ ctx->data[1] & (1 << 31) ?
"mono pattern transparency enabled, " : "");
}
if (count < 8)
BUFFER_FAIL(count, len, "XY_SETUP_BLT");
- decode_2d_br01(data, 1, hw_offset);
+ decode_2d_br01(ctx);
instr_out(data, hw_offset, 2, "cliprect (%d,%d)\n",
data[2] & 0xffff, data[2] >> 16);
instr_out(data, hw_offset, 3, "cliprect (%d,%d)\n",
if (count < 9)
BUFFER_FAIL(count, len, "XY_SETUP_MONO_PATTERN_SL_BLT");
- decode_2d_br01(data, 1, hw_offset);
+ decode_2d_br01(ctx);
instr_out(data, hw_offset, 2, "cliprect (%d,%d)\n",
data[2] & 0xffff, data[2] >> 16);
instr_out(data, hw_offset, 3, "cliprect (%d,%d)\n",
if (count < 6)
BUFFER_FAIL(count, len, "XY_COLOR_BLT");
- decode_2d_br01(data, 1, hw_offset);
+ decode_2d_br01(ctx);
instr_out(data, hw_offset, 2, "(%d,%d)\n",
data[2] & 0xffff, data[2] >> 16);
instr_out(data, hw_offset, 3, "(%d,%d)\n",
if (count < 8)
BUFFER_FAIL(count, len, "XY_SRC_COPY_BLT");
- decode_2d_br01(data, 1, hw_offset);
+ decode_2d_br01(ctx);
instr_out(data, hw_offset, 2, "dst (%d,%d)\n",
data[2] & 0xffff, data[2] >> 16);
instr_out(data, hw_offset, 3, "dst (%d,%d)\n",