Subversion Repositories Kolibri OS

Rev

Rev 4358 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4358 Rev 4401
Line 126... Line 126...
126
   default:
126
   default:
127
      assert(!"Unrecognized num_samples in gen6_emit_3dstate_multisample");
127
      assert(!"Unrecognized num_samples in gen6_emit_3dstate_multisample");
128
      break;
128
      break;
129
   }
129
   }
Line -... Line 130...
-
 
130
 
-
 
131
   /* 3DSTATE_MULTISAMPLE is nonpipelined. */
-
 
132
   intel_emit_post_sync_nonzero_flush(brw);
130
 
133
 
131
   int len = brw->gen >= 7 ? 4 : 3;
134
   int len = brw->gen >= 7 ? 4 : 3;
132
   BEGIN_BATCH(len);
135
   BEGIN_BATCH(len);
133
   OUT_BATCH(_3DSTATE_MULTISAMPLE << 16 | (len - 2));
136
   OUT_BATCH(_3DSTATE_MULTISAMPLE << 16 | (len - 2));
134
   OUT_BATCH(MS_PIXEL_LOCATION_CENTER | number_of_multisamples);
137
   OUT_BATCH(MS_PIXEL_LOCATION_CENTER | number_of_multisamples);
Line 181... Line 184...
181
      if (ctx->Multisample.SampleMask) {
184
      if (ctx->Multisample.SampleMask) {
182
         sample_mask = ctx->Multisample.SampleMaskValue;
185
         sample_mask = ctx->Multisample.SampleMaskValue;
183
      }
186
      }
184
   }
187
   }
Line 185... Line -...
185
 
-
 
186
   /* 3DSTATE_MULTISAMPLE is nonpipelined. */
-
 
187
   intel_emit_post_sync_nonzero_flush(brw);
-
 
188
 
188
 
189
   gen6_emit_3dstate_multisample(brw, num_samples);
189
   gen6_emit_3dstate_multisample(brw, num_samples);
190
   gen6_emit_3dstate_sample_mask(brw, num_samples, coverage,
190
   gen6_emit_3dstate_sample_mask(brw, num_samples, coverage,
191
         coverage_invert, sample_mask);
191
         coverage_invert, sample_mask);