radeonsi: Improve assert info out of si_set_framebuffer_state()
authorEdward O'Callaghan <eocallaghan@alterapraxis.com>
Sun, 20 Mar 2016 07:01:06 +0000 (18:01 +1100)
committerDave Airlie <airlied@redhat.com>
Thu, 7 Apr 2016 02:03:58 +0000 (12:03 +1000)
Lets give the developer a little hand if we are going to assert
on a zero literal at the end of a branch.

Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state.c

index 415b03a..f559c73 100644 (file)
@@ -2628,6 +2628,8 @@ static void si_set_framebuffer_state(struct pipe_context *ctx,
                        constbuf.user_buffer = sctx->b.sample_locations_16x;
                        break;
                default:
+                       R600_ERR("Requested an invalid number of samples %i.\n",
+                                sctx->framebuffer.nr_samples);
                        assert(0);
                }
                constbuf.buffer_size = sctx->framebuffer.nr_samples * 2 * 4;