Title: Request: WARP support and fix WARP rendering bugs.. · Issue #2 · GameTechDev/TextureSetNeuralCompressionSample · GitHub
Open Graph Title: Request: WARP support and fix WARP rendering bugs.. · Issue #2 · GameTechDev/TextureSetNeuralCompressionSample
X Title: Request: WARP support and fix WARP rendering bugs.. · Issue #2 · GameTechDev/TextureSetNeuralCompressionSample
Description: Hi, I tested sample on warp 1.0.15 which supports cooperative vectors and is rendering incorrectly.. note I have sample correctly rendering on NVidia.. see screenshot of rendering incorrectly on WARP: for testing although sample says you...
Open Graph Description: Hi, I tested sample on warp 1.0.15 which supports cooperative vectors and is rendering incorrectly.. note I have sample correctly rendering on NVidia.. see screenshot of rendering incorrectly on WA...
X Description: Hi, I tested sample on warp 1.0.15 which supports cooperative vectors and is rendering incorrectly.. note I have sample correctly rendering on NVidia.. see screenshot of rendering incorrectly on WA...
Opengraph URL: https://github.com/GameTechDev/TextureSetNeuralCompressionSample/issues/2
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request: WARP support and fix WARP rendering bugs..","articleBody":"Hi,\nI tested sample on warp 1.0.15 which supports cooperative vectors and is rendering incorrectly..\nnote I have sample correctly rendering on NVidia..\n\nsee screenshot of rendering incorrectly on WARP:\n\n\nfor testing although sample says you can select adapter it isn't used..\n\n\u003e--adapter-id Integer that allows to pick the desired GPU.\n\nI launch:\n\n\u003edino_danger.exe --data-dir ../../.. --adapter-id 1\n\nand still selects GPU (adapter 0)..\n\nto fix I changed code in two places (to allow software renderer) and to pass adapterIndex:\n\nfix1 (allow software renderer):\n```\n--- a/sdk/src/dx12/dx12_backend_graphics_device.cpp\n+++ b/sdk/src/dx12/dx12_backend_graphics_device.cpp\n@@ -133,7 +133,7 @@ namespace d3d12\n dxgiAdapter1-\u003eGetDesc1(\u0026dxgiAdapterDesc1);\n \n // First is it usable?\n- bool usableGPU = (dxgiAdapterDesc1.Flags \u0026 DXGI_ADAPTER_FLAG_SOFTWARE) == 0 \u0026\u0026 SUCCEEDED(D3D12CreateDevice(dxgiAdapter1, D3D_FEATURE_LEVEL_12_1, __uuidof(ID3D12Device), nullptr));\n+ bool usableGPU = /*(dxgiAdapterDesc1.Flags \u0026 DXGI_ADAPTER_FLAG_SOFTWARE) == 0 \u0026\u0026*/ SUCCEEDED(D3D12CreateDevice(dxgiAdapter1, D3D_FEATURE_LEVEL_12_1, __uuidof(ID3D12Device), nullptr));\n \n // Is it the right vendor?\n if (usableGPU \u0026\u0026 adapterIdx == adapterID)\n```\nfix2 (pass adapterIndex):\n```\n--- a/sdk/src/render_pipeline/dino_renderer.cpp\n+++ b/sdk/src/render_pipeline/dino_renderer.cpp\n@@ -56,7 +56,10 @@ void DinoRenderer::initialize(uint64_t hInstance, const CommandLineOptions\u0026 opti\n graphics::setup_graphics_api(GraphicsAPI::DX12);\n // graphics::device::enable_debug_layer();\n graphics::device::enable_experimental_features();\n- m_Device = graphics::device::create_graphics_device();\n+ if(options.adapterIndex==0)\n+ m_Device = graphics::device::create_graphics_device();\n+ else\n+ m_Device = graphics::device::create_graphics_device(DevicePickStrategy::AdapterID, options.adapterIndex);\n m_Window = graphics::window::create_window(m_Device, (uint64_t)hInstance, 1920, 1080, \"Intel TSNC (DX12)\");\n m_CmdQueue = graphics::command_queue::create_command_queue(m_Device);\n m_SwapChain = graphics::swap_chain::create_swap_chain(m_Window, m_Device, m_CmdQueue, FRAME_BUFFER_FORMAT);\n```\nwith that I was getting also a crash with WARP and was fixed with that:\n\n```\n--- a/sdk/src/dx12/dx12_backend_window.cpp\n+++ b/sdk/src/dx12/dx12_backend_window.cpp\n@@ -113,12 +113,12 @@ namespace d3d12\n \t\t\t\twindowClass.cbClsExtra = 0;\n \t\t\t\twindowClass.cbWndExtra = 0;\n \t\t\t\twindowClass.hInstance = hInst;\n-\t\t\t\twindowClass.hIcon = LoadIcon(hInst, NULL);\n+\t\t\t\twindowClass.hIcon = NULL;// LoadIcon(hInst, NULL);\n \t\t\t\twindowClass.hCursor = LoadCursor(NULL, IDC_ARROW);\n \t\t\t\twindowClass.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);\n \t\t\t\twindowClass.lpszMenuName = NULL;\n \t\t\t\twindowClass.lpszClassName = windowClassName;\n-\t\t\t\twindowClass.hIconSm = LoadIcon(hInst, NULL);\n+\t\t\t\twindowClass.hIconSm = NULL;// LoadIcon(hInst, NULL);\n \t\t\t\tassert_msg(RegisterClassExA(\u0026windowClass) \u003e 0, \"RegisterClassExA failed.\");\n \t\t\t\tclassRegistered = true;\n \t\t\t}\n```\n\nfinally launches but renders incorrectly don't know if WARP bug or not..\nalso perhaps you can \"massage\" code to make it work on WARP similar to have fixed recently for other GPUs in( for Nvidia ?):\nhttps://github.com/GameTechDev/TextureSetNeuralCompressionSample/commit/ec738e6d2536472b633a915b5d28c488e756db8e\n\nEDIT: also note WARP without coop vector hangs:\n\u003edino_danger.exe --data-dir ../../.. --adapter-id 1 --disable-coop\n\nit's strange but as said using --disable-coop on WARP seems to hang.. or maybe is much slower and didn't wait for long as needed..\n\n\nscreenshot of rendering correctly on NV:\n\n","author":{"url":"https://github.com/oscarbg","@type":"Person","name":"oscarbg"},"datePublished":"2025-06-19T00:38:07.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/2/TextureSetNeuralCompressionSample/issues/2"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a7a0f2b0-fb12-1a21-7acc-c005da7674d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BBF2:97651:F88164:1543379:6969F427 |
| html-safe-nonce | 3579401e6d0e5c28625a7f5b563d77675ec44dc6aab9b53b96e82bf2187e93bb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQkYyOjk3NjUxOkY4ODE2NDoxNTQzMzc5OjY5NjlGNDI3IiwidmlzaXRvcl9pZCI6IjUxMzI2ODE5NDI3OTU5NDA5MDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 64b308a6e4cb59db51dcbab120790957036c2c1537c36e5898825d201a277c61 |
| hovercard-subject-tag | issue:3158529461 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/GameTechDev/TextureSetNeuralCompressionSample/2/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4be77842751af89e26352b96f00a61c2c8758599c890791f893a9e3c6cdba14e/GameTechDev/TextureSetNeuralCompressionSample/issues/2 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4be77842751af89e26352b96f00a61c2c8758599c890791f893a9e3c6cdba14e/GameTechDev/TextureSetNeuralCompressionSample/issues/2 |
| og:image:alt | Hi, I tested sample on warp 1.0.15 which supports cooperative vectors and is rendering incorrectly.. note I have sample correctly rendering on NVidia.. see screenshot of rendering incorrectly on WA... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | oscarbg |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7b32f1c7c4549428ee399213e8345494fc55b5637195d3fc5f493657579235e8 |
| turbo-cache-control | no-preview |
| go-import | github.com/GameTechDev/TextureSetNeuralCompressionSample git https://github.com/GameTechDev/TextureSetNeuralCompressionSample.git |
| octolytics-dimension-user_id | 2574648 |
| octolytics-dimension-user_login | GameTechDev |
| octolytics-dimension-repository_id | 991209882 |
| octolytics-dimension-repository_nwo | GameTechDev/TextureSetNeuralCompressionSample |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 991209882 |
| octolytics-dimension-repository_network_root_nwo | GameTechDev/TextureSetNeuralCompressionSample |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | bdde15ad1b403e23b08bbd89b53fbe6bdf688cad |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width