DXGL r553 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r552‎ | r553 | r554 >
Date:01:19, 14 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
@@ -119,7 +119,7 @@
120120 0xFFFFFFFF,
121121 0xFFFFFFFF,
122122 0xFFFFFFFF,
123 - 0x00000040,
 123+ 0xFFFFFFFF,
124124 0x00000100,
125125 0x08000400,
126126 0x00001001,
@@ -307,38 +307,38 @@
308308 "pixel = (dest & (pattern | (pixel ^ colorsizedest))) ^ colorsizedest;\n",
309309 "pixel = dest ^ (pattern | (pixel & (dest ^ colorsizedest)));\n",
310310 "pixel = (dest & pattern) ^ colorsizedest;\n",//5F
311 -"",//60
312 -"",
313 -"",
314 -"",
315 -"",
316 -"",
 311+"pixel = pattern & (dest ^ pixel);\n",//60
 312+"pixel = (dest ^ colorsizedest) ^ pixel ^ (pattern | (dest & pixel));\n",
 313+"pixel = dest ^ (pixel & (pattern | dest));\n",
 314+"pixel = pixel ^ (dest | (pattern ^ colorsizedest));\n",
 315+"pixel = pixel ^ (dest & (pattern | pixel));\n",
 316+"pixel = dest ^ (pixel | (pattern ^ colorsizedest));\n",
317317 "pixel = pixel ^ dest;\n",//66 SRCINVERT
318 -"",
319 -"",
320 -"",
321 -"",
322 -"",
323 -"",
324 -"",
325 -"",
326 -"",//6F
327 -"",//70
328 -"",
329 -"",
330 -"",
331 -"",
332 -"",
333 -"",
334 -"",
335 -"",
336 -"",
337 -"",
338 -"",
339 -"",
340 -"",
341 -"",
342 -"",//7F
 318+"pixel = pixel ^ (dest | ((pixel | pattern) ^ colorsizedest));\n",
 319+"pixel = (dest ^ colorsizedest) ^ pixel ^ (pattern | ((dest | pixel) ^ colorsizedest));\n",
 320+"pixel = (pattern ^ colorsizedest) ^ (dest ^ pixel);\n",
 321+"pixel = dest ^ (pattern & pixel);\n",
 322+"pixel = (pattern ^ colorsizedest) ^ pixel ^ (dest & (pattern | pixel));\n",
 323+"pixel = pixel ^ (dest & pattern);\n",
 324+"pixel = (pattern ^ colorsizedest) ^ dest ^ (pixel & (pattern | dest));\n",
 325+"pixel = pixel ^ (dest & (pattern | (pixel ^ colorsizedest)));\n",
 326+"pixel = (pattern & ((pixel ^ dest) ^ colorsizedest)) ^ colorsizedest;\n",//6F
 327+"pixel = pattern & ((dest & pixel) ^ colorsizedest);\n",//70
 328+"pixel = (pixel ^ colorsizedest) ^ ((pixel ^ dest) & (pattern ^ dest));\n",
 329+"pixel = pixel ^ (dest | (pattern ^ pixel));\n",
 330+"pixel = (pixel & (dest | (pattern ^ colorsizedest))) ^ colorsizedest;\n",
 331+"pixel = dest ^ (pixel | (pattern ^ dest));\n",
 332+"pixel = (dest & (pixel | (pattern ^ colorsizedest))) ^ colorsizedest;\n",
 333+"pixel = pixel ^ (dest | (pattern & (pixel ^ colorsizedest)));\n",
 334+"pixel = (pixel & dest) ^ colorsizedest;\n",
 335+"pixel = pattern ^ (dest & pixel);\n",
 336+"pixel = (dest ^ colorsizedest) ^ pixel ^ (pattern & (dest | pixel));\n",
 337+"pixel = dest ^ (pattern & (pixel | (dest ^ colorsizedest)));\n",
 338+"pixel = (pixel & ((dest ^ pattern) ^ colorsizedest)) ^ colorsizedest;\n",
 339+"pixel = pixel ^ (pattern & (dest | (pixel ^ colorsizedest)));\n",
 340+"pixel = (dest & ((pattern ^ pixel) ^ colorsizedest)) ^ colorsizedest;\n",
 341+"pixel = (pixel ^ pattern) | (pattern ^ dest);\n",
 342+"pixel = (dest & pattern & pixel) ^ colorsizedest;\n",//7F
343343 "",//80
344344 "",
345345 "",