summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2012-01-09 16:39:28 -0800
committerEric Anholt <[email protected]>2012-01-10 16:44:16 -0800
commitbe4e46b21a60cfdc826bf89d1078df54966115b1 (patch)
tree2fcdc181e2832b87c9b75f32e599f74a19dbe3da /src/mesa
parent3d4efc583ce46e6f0a13302679fe1349d521a4a3 (diff)
i965: Claim to support 4 multisamples on gen6+.
We're not quite ready to actually support it in the implementation, but at least this allows GL 3.0 API-reliant applications to hopefully run successfully, though they won't get multisampling. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 087e5a283cf..558e0770675 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -208,6 +208,14 @@ brwCreateContext(int api,
ctx->Const.MaxTransformFeedbackSeparateComponents =
BRW_MAX_SOL_BINDINGS / BRW_MAX_SOL_BUFFERS;
+ /* Claim to support 4 multisamples, even though we don't. This is a
+ * requirement for GL 3.0 that we missed until the last minute. Go ahead and
+ * claim the limit, so that usage of the 4 multisample-based API that is
+ * guaranteed in 3.0 succeeds, even though we only rasterize a single sample.
+ */
+ if (intel->gen >= 6)
+ ctx->Const.MaxSamples = 4;
+
/* if conformance mode is set, swrast can handle any size AA point */
ctx->Const.MaxPointSizeAA = 255.0;