diff options
author | Kristian Høgsberg <[email protected]> | 2014-12-30 15:27:32 -0800 |
---|---|---|
committer | Kristian Høgsberg <[email protected]> | 2015-01-07 21:51:35 -0800 |
commit | cec8eff28e765b3958a2c3ac41578dfd1c4c8d0c (patch) | |
tree | 6caeef6c78f3ec5b746572ef39a88673e681ff41 /src/mesa/drivers | |
parent | e7026ac486c157b419726e6238d880a83172484d (diff) |
i965/skl: Report more accurate number of samples for format
Signed-off-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |