mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
radeonsi: Improve assert info out of si_set_framebuffer_state()
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>
This commit is contained in:
parent
bb1bd0ddd7
commit
1156cad405
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue