diff options
author | Paul Berry <[email protected]> | 2012-06-15 10:49:58 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-06-20 11:28:09 -0700 |
commit | 3b0279a69392a8fcc81ad462ca5623ec2a73f890 (patch) | |
tree | d32024d19c89563e5a34711f5f2b33c1702a698e /src/mesa/drivers/dri/i965/brw_fs.cpp | |
parent | 3becf984248b309639737b2f655cec14c47e2238 (diff) |
i965/msaa: Disable unsupported formats.
Due to hardware limitations, MSAA is unsupported on Gen6 for formats
containing >64 bits of data per pixel. From the Sandy Bridge PRM,
vol4 part1, p72 ("Surface Format"):
If Number of Multisamples is set to a value other than
MULTISAMPLECOUNT_1, this field cannot be set to the following
formats:
- any format with greater than 64 bits per element
- any compressed texture format (BC*)
- any YCRCB* format
Gen7 has a similar, but less stringent limitation: formats with >64
bits of data per pixel only support 4x MSAA.
This patch causes the unsupported formats to report
GL_FRAMEBUFFER_UNSUPPORTED.
Fixes piglit "multisample-formats" tests on Gen6.
Acked-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.cpp')
0 files changed, 0 insertions, 0 deletions