i965: expose new max sample counts
authorChris Forbes <chrisf@ijw.co.nz>
Fri, 30 Nov 2012 08:20:40 +0000 (21:20 +1300)
committerChris Forbes <chrisf@ijw.co.nz>
Fri, 1 Mar 2013 22:35:08 +0000 (11:35 +1300)
V2: For now, only expose a depth sample count of 1, since there are
possible unresolved interactions with HiZ.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_context.c

index 19497e9e239aec774c947b0f83a9c5d2767bf6f3..06d0da572008fd8b0648202aa6631ec2da11a2e3 100644 (file)
@@ -195,10 +195,18 @@ brwCreateContext(int api,
    ctx->Const.MaxTransformFeedbackSeparateComponents =
       BRW_MAX_SOL_BINDINGS / BRW_MAX_SOL_BUFFERS;
 
-   if (intel->gen == 6)
+   if (intel->gen == 6) {
       ctx->Const.MaxSamples = 4;
-   else if (intel->gen >= 7)
+      ctx->Const.MaxColorTextureSamples = 4;
+      ctx->Const.MaxDepthTextureSamples = 1;
+      ctx->Const.MaxIntegerSamples = 4;
+   }
+   else if (intel->gen >= 7) {
       ctx->Const.MaxSamples = 8;
+      ctx->Const.MaxColorTextureSamples = 8;
+      ctx->Const.MaxDepthTextureSamples = 1;
+      ctx->Const.MaxIntegerSamples = 8;
+   }
 
    /* if conformance mode is set, swrast can handle any size AA point */
    ctx->Const.MaxPointSizeAA = 255.0;