DXGL r551 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r550‎ | r551 | r552 >
Date:23:31, 12 October 2014
Author:admin
Status:new
Tags:
Comment:
Add more raster operations.
Modified paths:
  • /ddraw/ShaderGen2D.cpp (modified) (history)

Diff [purge]

Index: ddraw/ShaderGen2D.cpp
@@ -117,7 +117,7 @@
118118
119119 const DWORD supported_rops[8] = {
120120 0xFFFFFFFF,
121 - 0x00080000,
 121+ 0xFFFFFFFF,
122122 0x04200010,
123123 0x00000040,
124124 0x00000100,
@@ -243,38 +243,38 @@
244244 "pixel = (dest ^ colorsizedest) ^ (pixel & (dest ^ pattern));",
245245 "pixel = pattern ^ (dest | pixel);",
246246 "pixel = (pattern & (dest | pixel)) ^ colorsizedest;",//1F
247 -"",//20
248 -"",
249 -"",
250 -"",
251 -"",
252 -"",
253 -"",
254 -"",
255 -"",
256 -"",
257 -"",
258 -"",
259 -"",
260 -"",
261 -"",
262 -"",//2F
263 -"",//30
264 -"",
265 -"",
 247+"pixel = dest & (pattern & (pixel ^ colorsizedest));",//20
 248+"pixel = (pixel | (dest ^ pattern)) ^ colorsizedest;",
 249+"pixel = (pixel ^ colorsizedest) & dest;",
 250+"pixel = (pixel | (pattern & (dest ^ colorsizedest))) ^ colorsizedest;",
 251+"pixel = (pixel ^ pattern) & (pixel ^ dest);",
 252+"pixel = (pattern ^ colorsizedest) ^ (dest & ((pixel & pattern) ^ colorsizedest));",
 253+"pixel = pixel ^ (dest | (pixel & pattern));",
 254+"pixel = pixel ^ (dest | ((pattern ^ pixel) ^ colorsizedest));",
 255+"pixel = dest & (pattern ^ pixel);",
 256+"pixel = (pattern ^ colorsizedest) ^ pixel ^ (dest | (pattern & pixel));",
 257+"pixel = dest & ((pattern & pixel) ^ colorsizedest);",
 258+"pixel = (pixel ^ colorsizedest) ^ ((pattern ^ pixel) & (pattern ^ dest));",
 259+"pixel = pixel ^ (pattern & (pixel | dest));",
 260+"pixel = pattern ^ (pixel | (dest ^ colorsizedest));",
 261+"pixel = pattern ^ (pixel | (dest ^ pattern));",
 262+"pixel = (pattern & (pixel | (dest ^ pattern)))^ colorsizedest;",//2F
 263+"pixel = pattern & (pixel ^ colorsizedest);",//30
 264+"pixel = (pixel | (dest & (pattern ^ colorsizedest))) ^ colorsizedest;",
 265+"pixel = pixel ^ (dest | pattern | pixel);",
266266 "pixel = pixel ^ colorsizedest;\n",//33 NOTSRCCOPY
267 -"",
268 -"",
269 -"",
270 -"",
271 -"",
272 -"",
273 -"",
274 -"",
275 -"",
276 -"",
277 -"",
278 -"",//3F
 267+"pixel = pixel ^ (pattern | (dest & pixel));",
 268+"pixel = pixel ^ (pattern | ((dest ^ pixel) ^ colorsizedest));",
 269+"pixel = pixel ^ (dest | pattern);",
 270+"pixel = (pixel & (dest | pattern)) ^ colorsizedest;",
 271+"pixel = pattern ^ (pixel & (dest | pattern));",
 272+"pixel = pixel ^ (pattern | (dest ^ colorsizedest));",
 273+"pixel = pixel ^ (pattern | (dest ^ pixel));",
 274+"pixel = (pixel & (pattern | (dest ^ colorsizedest))) ^ colorsizedest;",
 275+"pixel = pattern ^ pixel;",
 276+"pixel = pixel ^ (pattern | ((dest | pixel) ^ colorsizedest));",
 277+"pixel = pixel ^ (pattern | (dest & (pixel ^ colorsizedest)));",
 278+"pixel = (pattern & pixel) ^ colorsizedest;",//3F
279279 "",//40
280280 "",
281281 "",