186
186
switch (logicop_func) {
187
187
case PIPE_LOGICOP_XOR:
188
188
case PIPE_LOGICOP_INVERT:
189
blend->need_white_fragments = TRUE;
190
blend->rt[buffer].blend_enable = TRUE;
189
blend->need_white_fragments = true;
190
blend->rt[buffer].blend_enable = true;
191
191
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_ONE;
192
192
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_ONE;
193
193
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_SUBTRACT;
195
195
case PIPE_LOGICOP_CLEAR:
196
blend->rt[buffer].blend_enable = TRUE;
196
blend->rt[buffer].blend_enable = true;
197
197
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_ZERO;
198
198
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_ZERO;
199
199
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_MINIMUM;
201
201
case PIPE_LOGICOP_COPY:
202
blend->rt[buffer].blend_enable = FALSE;
202
blend->rt[buffer].blend_enable = false;
203
203
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_ONE;
204
204
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_ZERO;
205
205
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_ADD;
207
207
case PIPE_LOGICOP_COPY_INVERTED:
208
blend->rt[buffer].blend_enable = TRUE;
208
blend->rt[buffer].blend_enable = true;
209
209
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_INVSRCCOLOR;
210
210
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_ZERO;
211
211
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_ADD;
213
213
case PIPE_LOGICOP_NOOP:
214
blend->rt[buffer].blend_enable = TRUE;
214
blend->rt[buffer].blend_enable = true;
215
215
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_ZERO;
216
216
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_DESTCOLOR;
217
217
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_ADD;
219
219
case PIPE_LOGICOP_SET:
220
blend->rt[buffer].blend_enable = TRUE;
220
blend->rt[buffer].blend_enable = true;
221
221
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_ONE;
222
222
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_ONE;
223
223
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_MAXIMUM;
225
225
case PIPE_LOGICOP_AND:
226
226
/* Approximate with minimum - works for the 0 & anything case: */
227
blend->rt[buffer].blend_enable = TRUE;
227
blend->rt[buffer].blend_enable = true;
228
228
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_SRCCOLOR;
229
229
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_DESTCOLOR;
230
230
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_MINIMUM;
232
232
case PIPE_LOGICOP_AND_REVERSE:
233
blend->rt[buffer].blend_enable = TRUE;
233
blend->rt[buffer].blend_enable = true;
234
234
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_SRCCOLOR;
235
235
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_INVDESTCOLOR;
236
236
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_MINIMUM;
238
238
case PIPE_LOGICOP_AND_INVERTED:
239
blend->rt[buffer].blend_enable = TRUE;
239
blend->rt[buffer].blend_enable = true;
240
240
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_INVSRCCOLOR;
241
241
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_DESTCOLOR;
242
242
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_MINIMUM;
244
244
case PIPE_LOGICOP_OR:
245
245
/* Approximate with maximum - works for the 1 | anything case: */
246
blend->rt[buffer].blend_enable = TRUE;
246
blend->rt[buffer].blend_enable = true;
247
247
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_SRCCOLOR;
248
248
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_DESTCOLOR;
249
249
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_MAXIMUM;
251
251
case PIPE_LOGICOP_OR_REVERSE:
252
blend->rt[buffer].blend_enable = TRUE;
252
blend->rt[buffer].blend_enable = true;
253
253
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_SRCCOLOR;
254
254
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_INVDESTCOLOR;
255
255
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_MAXIMUM;
257
257
case PIPE_LOGICOP_OR_INVERTED:
258
blend->rt[buffer].blend_enable = TRUE;
258
blend->rt[buffer].blend_enable = true;
259
259
blend->rt[buffer].srcblend = SVGA3D_BLENDOP_INVSRCCOLOR;
260
260
blend->rt[buffer].dstblend = SVGA3D_BLENDOP_DESTCOLOR;
261
261
blend->rt[buffer].blendeq = SVGA3D_BLENDEQ_MAXIMUM;