DXGL r554 - Code Review

Jump to navigation Jump to search
Repository:DXGL
Revision:r553‎ | r554 | r555 >
Date:22:47, 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
@@ -120,7 +120,7 @@
121121 0xFFFFFFFF,
122122 0xFFFFFFFF,
123123 0xFFFFFFFF,
124 - 0x00000100,
 124+ 0xFFFFFFFF,
125125 0x08000400,
126126 0x00001001,
127127 0x88014000
@@ -339,38 +339,38 @@
340340 "pixel = (dest & ((pattern ^ pixel) ^ colorsizedest)) ^ colorsizedest;\n",
341341 "pixel = (pixel ^ pattern) | (pattern ^ dest);\n",
342342 "pixel = (dest & pattern & pixel) ^ colorsizedest;\n",//7F
343 -"",//80
344 -"",
345 -"",
346 -"",
347 -"",
348 -"",
349 -"",
350 -"",
 343+"pixel = dest & pattern & pixel;\n",//80
 344+"pixel = ((pixel ^ pattern) | (pixel ^ dest)) ^ colorsizedest;\n",
 345+"pixel = dest & ((pattern ^ pixel) ^ colorsizedest);\n",
 346+"pixel = (pixel ^ colorsizedest) ^ (pattern & (dest | (pixel ^ colorsizedest)));\n",
 347+"pixel = pixel & ((dest ^ pattern) ^ colorsizedest);\n",
 348+"pixel = (pattern ^ colorsizedest) ^ (dest & (pixel | (pattern ^ colorsizedest)));\n",
 349+"pixel = dest ^ pixel ^ (pattern & (dest | pixel));\n",
 350+"pixel = (pattern ^ colorsizedest) ^ (dest & pixel);\n",
351351 "pixel = pixel & dest;\n",//88 SRCAND
352 -"",
353 -"",
354 -"",
355 -"",
356 -"",
357 -"",
358 -"",//8F
359 -"",//90
360 -"",
361 -"",
362 -"",
363 -"",
364 -"",
365 -"",
366 -"",
367 -"",
368 -"",
369 -"",
370 -"",
371 -"",
372 -"",
373 -"",
374 -"",//9F
 352+"pixel = (pixel ^ colorsizedest) ^ (dest | (pattern & (pixel ^ colorsizedest)));\n",
 353+"pixel = dest & (pixel | (pattern ^ colorsizedest));\n",
 354+"pixel = (dest ^ colorsizedest) ^ (pixel | (pattern ^ dest));\n",
 355+"pixel = pixel & (dest | (pattern ^ colorsizedest));\n",
 356+"pixel = (pixel ^ colorsizedest) ^ (dest | (pattern ^ pixel));\n",
 357+"pixel = pixel ^ ((pixel ^ dest) & (pattern ^ dest));\n",
 358+"pixel = (pattern & ((dest & pixel) ^ colorsizedest)) ^ colorsizedest;\n",//8F
 359+"pixel = pattern & ((dest ^ pixel) ^ colorsizedest);\n",//90
 360+"pixel = (pixel ^ colorsizedest) ^ (dest & (pattern | (pixel ^ colorsizedest)));\n",
 361+"pixel = dest ^ pattern ^ (pixel & (dest | pattern));\n",
 362+"pixel = (pixel ^ colorsizedest) ^ (pattern & dest);\n",
 363+"pixel = pixel ^ pattern ^ (dest & (pattern | pixel));\n",
 364+"pixel = (dest ^ colorsizedest) ^ (pattern & pixel);\n",
 365+"pixel = dest ^ pattern ^ pixel;\n",
 366+"pixel = pixel ^ pattern ^ (dest | ((pattern | pixel) ^ colorsizedest));\n",
 367+"pixel = (pixel ^ colorsizedest) ^ (dest | ((pattern | pixel) ^ colorsizedest));\n",
 368+"pixel = (pixel ^ colorsizedest) ^ dest;\n",
 369+"pixel = dest ^ (pattern & (pixel ^ colorsizedest));\n",
 370+"pixel = (pixel ^ colorsizedest) ^ (dest & (pattern | pixel));\n",
 371+"pixel = pixel ^ (pattern & (dest ^ colorsizedest));\n",
 372+"pixel = (dest ^ colorsizedest) ^ (pixel & (pattern | dest));\n",
 373+"pixel = dest ^ pixel ^ (pattern | (dest & pixel));\n",
 374+"pixel = (pattern & (dest ^ pixel)) ^ colorsizedest;\n",//9F
375375 "",//A0
376376 "",
377377 "",