aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChris Forbes <[email protected]>2012-11-30 21:20:40 +1300
committerChris Forbes <[email protected]>2013-03-02 11:35:08 +1300
commitabb5429537b4e7f42bcdd744ed7aaaf35b719cf4 (patch)
tree7dce5dc689eb96c3356ab6771a4d8b637e15e810 /src
parentdb5d5c30a603cb988dab8ed03cb99b68149826a8 (diff)
i965: expose new max sample counts
V2: For now, only expose a depth sample count of 1, since there are possible unresolved interactions with HiZ. Signed-off-by: Chris Forbes <[email protected]> Reviewed-by: Paul Berry <[email protected]> Reviewed-by: Eric Anholt <[email protected]> Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/mesa/drivers/dri/i965/brw_context.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c
index 19497e9e239..06d0da57200 100644
--- a/src/mesa/drivers/dri/i965/brw_context.c
+++ b/src/mesa/drivers/dri/i965/brw_context.c
@@ -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;