diff options
author | Paul Berry <[email protected]> | 2012-07-26 14:13:35 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-07-27 10:42:19 -0700 |
commit | ee9f6a34ccf7f51111b21bba8d8f9d03cc0a2c74 (patch) | |
tree | 2c0c5c18b53c4b89fec42b74a5da3995f7cb49a8 /src/mesa/drivers | |
parent | 588881430a3d328f2d99fbd5197d85dafc31209b (diff) |
i965/msaa: Use MESA_FORMAT_R8 for MCS buffer.
No functional change. This patch modifies intel_miptree_alloc_mcs to
allocate the 4x MCS buffer using MESA_FORMAT_R8 instead of
MESA_FORMAT_A8. In principle it doesn't matter, since we only access
the buffer using MCS-specific hardware mechanisms, so all that's
important is to use a format with the correct size. However,
MESA_FORMAT_A8 has enough unusual behaviours that it seems prudent to
avoid it.
Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_mipmap_tree.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c index 3d15a8d976e..53bc23f2d08 100644 --- a/src/mesa/drivers/dri/intel/intel_mipmap_tree.c +++ b/src/mesa/drivers/dri/intel/intel_mipmap_tree.c @@ -684,7 +684,7 @@ intel_miptree_alloc_mcs(struct intel_context *intel, /* 8 bits/pixel are required for MCS data when using 4x MSAA (2 bits for * each sample). */ - format = MESA_FORMAT_A8; + format = MESA_FORMAT_R8; break; case 8: /* 32 bits/pixel are required for MCS data when using 8x MSAA (3 bits |