diff options
author | Kenneth Graunke <[email protected]> | 2014-08-29 15:15:43 -0700 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-08-31 19:07:04 +0100 |
commit | 8ef3d4fe03de1b370e255a3c900719a8cce59599 (patch) | |
tree | 93d9575e50a42772f03634b1c8dc01bef33f10fc | |
parent | 0c67167370bfbfee7d456812c13a87b239530dc9 (diff) |
i965: Add 2x MSAA support to Broadwell fast clear code.
According to the cited documentation section (but in the newer docs),
x_scaledown is the same for 2x and 4x MSAA.
+47 piglits.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83081
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Cc: "10.3" <[email protected]>
(cherry picked from commit e34a363a781a24b2cf6930c4d37f781ffec8a19a)
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c index 4fb20d74e29..aa3a60dfe7a 100644 --- a/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c +++ b/src/mesa/drivers/dri/i965/brw_meta_fast_clear.c @@ -282,6 +282,7 @@ get_fast_clear_rect(struct brw_context *brw, struct gl_framebuffer *fb, * factor is 2 vertically and either 2 or 8 horizontally. */ switch (irb->mt->num_samples) { + case 2: case 4: x_scaledown = 8; break; |