You are quite right - also the following instruction:

{
EASY_PFS_INSTR0(MAD, SRC0C_XYZ, ONE, ZERO),
EASY_PFS_INSTR1(0, 0, 0 | PFS_FLAG_CONST, 0 | PFS_FLAG_CONST, NONE, ALL),
EASY_PFS_INSTR2(MAD, SRC0A, ONE, ZERO),
EASY_PFS_INSTR3(0, 0, 0 | PFS_FLAG_CONST, 0 | PFS_FLAG_CONST, OUTPUT)
}


looks like a NOP ( it basically does reg0<-reg0*1+0.0 ).

with some more testing I found:
- FLAT_COLOR_PIXEL_SHADER needs 2 NOP when resizing window->full screen to avoid corruption. Can you add these NOPs only when resizing? =)


- SINGLE_TEXTURE_VERTEX_SHADER needs 1 NOP to get q3a to work for me.
  else get a blank screen. The game runs fine I just can't see anything.
  The NOP might be needed for the initial setup.

Rune Petersen


------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl -- _______________________________________________ Dri-devel mailing list Dri-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to