- struct gl_context *ctx = &brw->ctx;
-
- /* _NEW_BUFFERS, _NEW_MULTISAMPLE */
- unsigned num_samples = ctx->DrawBuffer->Visual.samples;
-
- gen6_emit_3dstate_multisample(brw, num_samples);
- gen6_emit_3dstate_sample_mask(brw, gen6_determine_sample_mask(brw));
+ uint8_t map_2x[2] = {1, 0};
+ uint8_t map_4x[4] = {0, 1, 2, 3};
+ uint8_t map_8x[8] = {3, 7, 5, 0, 1, 2, 4, 6};
+ uint8_t map_16x[16] = { 15, 10, 9, 7, 4, 1, 3, 13,
+ 12, 2, 0, 6, 11, 8, 5, 14 };
+
+ memcpy(ctx->Const.SampleMap2x, map_2x, sizeof(map_2x));
+ memcpy(ctx->Const.SampleMap4x, map_4x, sizeof(map_4x));
+ memcpy(ctx->Const.SampleMap8x, map_8x, sizeof(map_8x));
+ memcpy(ctx->Const.SampleMap16x, map_16x, sizeof(map_16x));