i965/gen10: Don't set Antialiasing Enable in 3DSTATE_RASTER if num_samples > 1
Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
2d10eb5ed8
commit
7a09be2dc9
|
@ -4362,6 +4362,16 @@ genX(upload_raster)(struct brw_context *brw)
|
||||||
/* _NEW_LINE */
|
/* _NEW_LINE */
|
||||||
raster.AntialiasingEnable = ctx->Line.SmoothFlag;
|
raster.AntialiasingEnable = ctx->Line.SmoothFlag;
|
||||||
|
|
||||||
|
#if GEN_GEN == 10
|
||||||
|
/* _NEW_BUFFERS
|
||||||
|
* Antialiasing Enable bit MUST not be set when NUM_MULTISAMPLES > 1.
|
||||||
|
*/
|
||||||
|
const bool multisampled_fbo =
|
||||||
|
_mesa_geometric_samples(ctx->DrawBuffer) > 1;
|
||||||
|
if (multisampled_fbo)
|
||||||
|
raster.AntialiasingEnable = false;
|
||||||
|
#endif
|
||||||
|
|
||||||
/* _NEW_SCISSOR */
|
/* _NEW_SCISSOR */
|
||||||
raster.ScissorRectangleEnable = ctx->Scissor.EnableFlags;
|
raster.ScissorRectangleEnable = ctx->Scissor.EnableFlags;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue