[Mesa-dev] [PATCH 2/2] i965/skl: Report more accurate number of samples for format
Kristian Høgsberg
krh at bitplanet.net
Tue Dec 30 21:24:53 PST 2014
Signed-off-by: Kristian Høgsberg <krh at bitplanet.net>
---
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 860ee22d..e8ecbfe 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;
}
--
2.1.0
More information about the mesa-dev
mailing list