Hardware Configuration: DELL XPS 9550 Optimus with NVIDIA GTX 960m
Software Configuration: Linux Kernel 4.8.8, Xorg 1.19, Intel modesetting driver, Nvidia driver version 375.20
At the startup of my application i’m creating a sparse texture 2D array using this code:
GLuint probe;
glCreateTextures(GL_TEXTURE_2D_ARRAY, 1, probe);
glTextureParameteri(probe, GL_TEXTURE_SPARSE_ARB, GL_TRUE);
glTextureParameteri(probe, GL_VIRTUAL_PAGE_SIZE_INDEX_ARB, 0);
glTextureStorage3D(probe, 1, GL_RGBA8, 2048, 2048, 50);
The storage instruction gives out-of-memory error (error code 1285).
The same instrunction on Windows 10 works without issues on the same hardware.
This is the nvidia-smi status before running the test:
Thu Nov 24 12:32:10 2016
±----------------------------------------------------------------------------+
| NVIDIA-SMI 375.20 Driver Version: 375.20 |
|-------------------------------±---------------------±---------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce GTX 960M Off | 0000:01:00.0 Off | N/A |
| N/A 42C P0 N/A / N/A | 565MiB / 2034MiB | 7% Default |
±------------------------------±---------------------±---------------------+
±----------------------------------------------------------------------------+
| Processes: GPU Memory |
| GPU PID Type Process name Usage |
|=============================================================================|
| 0 1075 G /usr/libexec/Xorg 46MiB |
| 0 1562 G /usr/libexec/Xorg 222MiB |
| 0 1668 G /usr/bin/gnome-shell 148MiB |
| 0 2519 G …omotingQUIC/Enabled/DisallowFetchForDocWr 71MiB |
±----------------------------------------------------------------------------+
Is it possible to enable more sparse texture virtual allocation? Or how can i know how much virtual allocation space is allowed at runtime for a target system?