diff options
author | Kenneth Graunke <[email protected]> | 2017-08-30 08:16:06 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2017-08-30 08:21:38 -0700 |
commit | d808f44ae555d16369afe357e0983186da61efda (patch) | |
tree | d53172d7e658d6617da31772e2b036687f4d7ac0 /src/mesa/drivers | |
parent | ac0d8dc3fa3b294104d0c8ba54262e7b07389cb9 (diff) |
Revert "i965: add 2xMSAA and 16xMSAA to DRI configs for Gen9."
This reverts commit f6d38785e8b28a6dd303884798b823e289817741.
Kevin's original patch accidentally didn't add 2x for Gen8; he sent
a v2 with a bunch of style fixes shortly after I pushed the original
patch, not knowing it was coming. Let's just revert this one, apply
v2, and move on.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/intel_screen.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 1f54634f4da..f98475997d3 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b/src/mesa/drivers/dri/i965/intel_screen.c @@ -1882,7 +1882,7 @@ intel_screen_make_configs(__DRIscreen *dri_screen) }; static const uint8_t singlesample_samples[1] = {0}; - static const uint8_t multisample_samples_2_4_8_16[] = {2, 4, 8, 16}; + static const uint8_t multisample_samples[2] = {4, 8}; struct intel_screen *screen = dri_screen->driverPrivate; const struct gen_device_info *devinfo = &screen->devinfo; @@ -1966,7 +1966,6 @@ intel_screen_make_configs(__DRIscreen *dri_screen) __DRIconfig **new_configs; const int num_depth_stencil_bits = 2; int num_msaa_modes = 0; - const uint8_t *multisample_samples = NULL; depth_bits[0] = 0; stencil_bits[0] = 0; @@ -1979,16 +1978,10 @@ intel_screen_make_configs(__DRIscreen *dri_screen) stencil_bits[1] = 8; } - if (devinfo->gen >= 9) { - multisample_samples = multisample_samples_2_4_8_16; - num_msaa_modes = 4; - } else if (devinfo->gen >= 7) { - multisample_samples = multisample_samples_2_4_8_16 + 1; + if (devinfo->gen >= 7) num_msaa_modes = 2; - } else if (devinfo->gen == 6) { - multisample_samples = multisample_samples_2_4_8_16 + 1; + else if (devinfo->gen == 6) num_msaa_modes = 1; - } new_configs = driCreateConfigs(formats[i], depth_bits, |