Changeset 105566 in vbox for trunk/src/VBox/Additions
- Timestamp:
- Aug 1, 2024 1:57:57 PM (7 months ago)
- svn:sync-xref-src-repo-rev:
- 164237
- Location:
- trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDX.h
r102809 r105566 53 53 #define DEBUG_BREAKPOINT_TEST() do { } while (0) 54 54 #endif 55 56 /**@def FLOAT_FMT_STR 57 * Format string bits to go with FLOAT_FMT_ARGS. */ 58 #define FLOAT_FMT_STR "%s%u.%06u" 59 /** @def FLOAT_FMT_ARGS 60 * Format arguments for a float value, corresponding to FLOAT_FMT_STR. 61 * @param r The floating point value to format. */ 62 #define FLOAT_FMT_ARGS(r) (r) >= 0.0f ? "" : "-", (unsigned)RT_ABS(r) \ 63 , (unsigned)(RT_ABS((r) - (float)(unsigned)(r)) * 1000000.0f) 55 64 56 65 typedef struct VBOXDXADAPTER -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDXCmd.cpp
r102809 r105566 326 326 SVGA3dCmdDXSetBlendState *cmd = (SVGA3dCmdDXSetBlendState *)pvCmd; 327 327 SET_CMD_FIELD(blendId); 328 memcpy(cmd->blendFactor, blendFactor, sizeof(blendFactor)); 328 SET_CMD_FIELD(blendFactor[0]); 329 SET_CMD_FIELD(blendFactor[1]); 330 SET_CMD_FIELD(blendFactor[2]); 331 SET_CMD_FIELD(blendFactor[3]); 329 332 SET_CMD_FIELD(sampleMask); 330 333 -
trunk/src/VBox/Additions/WINNT/Graphics/Video/disp/wddm/dx/VBoxDXDDI.cpp
r102809 r105566 788 788 PVBOXDX_DEVICE pDevice = (PVBOXDX_DEVICE)hDevice.pDrvPrivate; 789 789 PVBOXDX_BLENDSTATE pBlendState = (PVBOXDX_BLENDSTATE)hBlendState.pDrvPrivate; 790 LogFlowFunc(("pDevice 0x%p, pBlendState 0x%p, SampleMask 0x%x", pDevice, pBlendState, SampleMask)); 790 LogFlowFunc(("pDevice 0x%p, pBlendState 0x%p, BlendFactor (" FLOAT_FMT_STR ", " FLOAT_FMT_STR ", " FLOAT_FMT_STR ", " FLOAT_FMT_STR "), SampleMask 0x%x", 791 pDevice, pBlendState, FLOAT_FMT_ARGS(BlendFactor[0]), FLOAT_FMT_ARGS(BlendFactor[1]), FLOAT_FMT_ARGS(BlendFactor[2]), FLOAT_FMT_ARGS(BlendFactor[3]), SampleMask)); 792 793 #ifdef LOG_ENABLED 794 if (pBlendState) 795 { 796 LogFlowFunc(("[%u] ATCE %d, IBE %d, RT: b %d, lo %d, src %d, dest %d. op %d, asrc %d, adest %d. aop %d, lo %d, m %x\n", 797 pBlendState->uBlendId, pBlendState->BlendDesc.AlphaToCoverageEnable, pBlendState->BlendDesc.IndependentBlendEnable, 798 pBlendState->BlendDesc.RenderTarget[0].BlendEnable, 799 pBlendState->BlendDesc.RenderTarget[0].LogicOpEnable, 800 pBlendState->BlendDesc.RenderTarget[0].SrcBlend, 801 pBlendState->BlendDesc.RenderTarget[0].DestBlend, 802 pBlendState->BlendDesc.RenderTarget[0].BlendOp, 803 pBlendState->BlendDesc.RenderTarget[0].SrcBlendAlpha, 804 pBlendState->BlendDesc.RenderTarget[0].DestBlendAlpha, 805 pBlendState->BlendDesc.RenderTarget[0].BlendOpAlpha, 806 pBlendState->BlendDesc.RenderTarget[0].LogicOp, 807 pBlendState->BlendDesc.RenderTarget[0].RenderTargetWriteMask)); 808 } 809 #endif 810 791 811 792 812 vboxDXSetBlendState(pDevice, pBlendState, BlendFactor, SampleMask);
Note:
See TracChangeset
for help on using the changeset viewer.