Mesa (master): i965: bump MAX_DEPTH_TEXTURE_SAMPLES to 4/8

Chris Forbes chrisf at kemper.freedesktop.org
Sun Mar 24 04:40:59 UTC 2013


Module: Mesa
Branch: master
Commit: f56fb9d24825a94f25ba566f035e9d6062488397
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=f56fb9d24825a94f25ba566f035e9d6062488397

Author: Chris Forbes <chrisf at ijw.co.nz>
Date:   Sun Mar 24 16:21:01 2013 +1300

i965: bump MAX_DEPTH_TEXTURE_SAMPLES to 4/8

Bump MAX_DEPTH_TEXTURE_SAMPLES to match what GetInternalformativ is
claiming. Since that limit is what is actually enforced now, this
doesn't actually change anything except the queried value.

There's still no piglits verifying that multisample depth textures work,
but this works in the Unigine demos.

Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/drivers/dri/i965/brw_context.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index b8e39ab..ceaf325 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -202,13 +202,13 @@ brwCreateContext(int api,
    if (intel->gen == 6) {
       ctx->Const.MaxSamples = 4;
       ctx->Const.MaxColorTextureSamples = 4;
-      ctx->Const.MaxDepthTextureSamples = 1;
+      ctx->Const.MaxDepthTextureSamples = 4;
       ctx->Const.MaxIntegerSamples = 4;
    }
    else if (intel->gen >= 7) {
       ctx->Const.MaxSamples = 8;
       ctx->Const.MaxColorTextureSamples = 8;
-      ctx->Const.MaxDepthTextureSamples = 1;
+      ctx->Const.MaxDepthTextureSamples = 8;
       ctx->Const.MaxIntegerSamples = 8;
    }
 




More information about the mesa-commit mailing list