From: Kristian Høgsberg Date: Tue, 30 Dec 2014 23:27:32 +0000 (-0800) Subject: i965/skl: Report more accurate number of samples for format X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cec8eff28e765b3958a2c3ac41578dfd1c4c8d0c;p=mesa.git i965/skl: Report more accurate number of samples for format Signed-off-by: Kristian Høgsberg Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index 860ee22d674..e8ecbfe80d9 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -81,6 +81,7 @@ brw_query_samples_for_format(struct gl_context *ctx, GLenum target, (void) target; switch (brw->gen) { + case 9: case 8: samples[0] = 8; samples[1] = 4; @@ -97,6 +98,7 @@ brw_query_samples_for_format(struct gl_context *ctx, GLenum target, return 1; default: + assert(brw->gen < 6); samples[0] = 1; return 1; }