From cec8eff28e765b3958a2c3ac41578dfd1c4c8d0c Mon Sep 17 00:00:00 2001 From: Kristian Høgsberg Date: Tue, 30 Dec 2014 15:27:32 -0800 Subject: i965/skl: Report more accurate number of samples for format MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristian Høgsberg Reviewed-by: Matt Turner --- src/mesa/drivers/dri/i965/brw_context.c | 2 ++ 1 file changed, 2 insertions(+) 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; } -- cgit v1.2.3