~mmach/netext73/mesa_2004

« back to all changes in this revision

Viewing changes to src/gallium/drivers/svga/svga_pipe_depthstencil.c

  • Committer: mmach
  • Date: 2021-03-12 20:48:59 UTC
  • Revision ID: netbit73@gmail.com-20210312204859-i194ujlcu82pq61p
21

Show diffs side-by-side

added added

removed removed

Lines of Context:
188
188
   }
189
189
 
190
190
 
191
 
   ds->zenable = templ->depth.enabled;
 
191
   ds->zenable = templ->depth_enabled;
192
192
   if (ds->zenable) {
193
 
      ds->zfunc = svga_translate_compare_func(templ->depth.func);
194
 
      ds->zwriteenable = templ->depth.writemask;
 
193
      ds->zfunc = svga_translate_compare_func(templ->depth_func);
 
194
      ds->zwriteenable = templ->depth_writemask;
195
195
   }
196
196
   else {
197
197
      ds->zfunc = SVGA3D_CMP_ALWAYS;
198
198
   }
199
199
 
200
 
   ds->alphatestenable = templ->alpha.enabled;
 
200
   ds->alphatestenable = templ->alpha_enabled;
201
201
   if (ds->alphatestenable) {
202
 
      ds->alphafunc = svga_translate_compare_func(templ->alpha.func);
203
 
      ds->alpharef = templ->alpha.ref_value;
 
202
      ds->alphafunc = svga_translate_compare_func(templ->alpha_func);
 
203
      ds->alpharef = templ->alpha_ref_value;
204
204
   }
205
205
   else {
206
206
      ds->alphafunc = SVGA3D_CMP_ALWAYS;
263
263
 
264
264
static void
265
265
svga_set_stencil_ref(struct pipe_context *pipe,
266
 
                     const struct pipe_stencil_ref *stencil_ref)
 
266
                     const struct pipe_stencil_ref stencil_ref)
267
267
{
268
268
   struct svga_context *svga = svga_context(pipe);
269
269
 
272
272
      svga_hwtnl_flush_retry(svga);
273
273
   }
274
274
 
275
 
   svga->curr.stencil_ref = *stencil_ref;
 
275
   svga->curr.stencil_ref = stencil_ref;
276
276
 
277
277
   svga->dirty |= SVGA_NEW_STENCIL_REF;
278
278
}