Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
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.MaxSamples = 8;
/* if conformance mode is set, swrast can handle any size AA point */
ctx->Const.MaxPointSizeAA = 255.0;
else
return 0;
case 7:
- /* TODO: Gen7 supports only 4x multisampling at the moment. */
- if (num_samples > 0)
+ /* Gen7 supports 4x and 8x multisampling. */
+ if (num_samples > 4)
+ return 8;
+ else if (num_samples > 0)
return 4;
else
return 0;