summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/i915simple
diff options
context:
space:
mode:
authorKeith Whitwell <[email protected]>2008-05-02 12:00:13 +0100
committerKeith Whitwell <[email protected]>2008-05-02 12:00:13 +0100
commitc3a8a41faabed4c9b84a6fbaf7a86a089b8fcbba (patch)
treef9ae084994ac92d139e38d4ce84a82cfa01c5f69 /src/gallium/drivers/i915simple
parent731e7b961cd081ac6a64b636937716ce3a623c2c (diff)
parent5e49037caa4cf9062efd0bbebf67b467684b633b (diff)
Merge branch 'gallium-0.1' into gallium-tex-surfaces
Diffstat (limited to 'src/gallium/drivers/i915simple')
-rw-r--r--src/gallium/drivers/i915simple/i915_debug_fp.c3
-rw-r--r--src/gallium/drivers/i915simple/i915_screen.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/i915simple/i915_debug_fp.c b/src/gallium/drivers/i915simple/i915_debug_fp.c
index 37a3508fe14..c024a051a58 100644
--- a/src/gallium/drivers/i915simple/i915_debug_fp.c
+++ b/src/gallium/drivers/i915simple/i915_debug_fp.c
@@ -333,12 +333,11 @@ void
i915_disassemble_program(struct debug_stream *stream,
const unsigned * program, unsigned sz)
{
- unsigned size = program[0] & 0x1ff;
unsigned i;
PRINTF(stream, "\t\tBEGIN\n");
- assert(size + 2 == sz);
+ assert((program[0] & 0x1ff) + 2 == sz);
program++;
for (i = 1; i < sz; i += 3, program += 3) {
diff --git a/src/gallium/drivers/i915simple/i915_screen.c b/src/gallium/drivers/i915simple/i915_screen.c
index dcd349e478b..ba8f183bdf0 100644
--- a/src/gallium/drivers/i915simple/i915_screen.c
+++ b/src/gallium/drivers/i915simple/i915_screen.c
@@ -182,6 +182,7 @@ i915_is_format_supported( struct pipe_screen *screen,
break;
default:
assert(0);
+ return FALSE;
}
for (i = 0; list[i] != PIPE_FORMAT_NONE; i++) {