Re: [kde-freebsd] kwin and GL_OUT_OF_MEMORY
On Sun, 24 Jan 2016 20:13:46 -0500 "Mikhail T."wrote: > On 24.01.2016 17:16, Schaich Alonso wrote: > >> cc $(pkg-config --cflags --libs gl glu x11) NVX_gpu_memory_info.c > > on a box with kde and it's dependencies installed. > Ok, here it is: > > NVIDIA: API mismatch: this NVIDIA driver component has version > 304.128, but the NVIDIA kernel module's version does not match. > Please make sure that the kernel module and all NVIDIA driver > components have the same version. > GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX=0 > GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX=0 > GPU_MEMORY_INFO_EVICTION_COUNT_NVX=0 > GPU_MEMORY_INFO_EVICTED_MEMORY_NVX=895 > > This is an older video card (Quadro FX 1400), so the kernel-part has to > be older... Everything worked, though -- and even OpenGL screensavers > are /fast/ -- except for this problem... > > Do you have any custom xorg.conf tuning? > The above qualifies, does not it?.. Thank you very much. Yours, > > -mi > > All those numbers are supposed to be kilobytes, to GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX=0 should hint your video card has no video memory at all, or at least applications using GL_NVX_gpu_memory_info would get the impression thereof, however a quadro fx1400 card should have 128MB of dedicated memory. I'm having the x11/nvidia-driver-340 on one of my boxes, and it doesn't cause that version mismatch warning to be emited. Are you sure the driver is properly installed? The kernel module's version is printed when the module is loaded which can later be queried by reviewed using dmesg, while the userspace version can be seen using kinfocenter at Graphical Information->OpenGL->[right side]->Direct Rendering->Driver->OpenGL/ES Version. Poor installations of the driver can occur when /boot is a dedicated partition and it's not mounted while the port is being installed, or it's mounted during installation but the driver is manually loaded (instead of a nvidia_load at loader.conf) after booting without /boot being mounted (so the module is loaded from the rootfs' /boot copy where there is still the previous nvidia driver). I.e. when the mount state of /boot is different during driver installation and module load time. Alonso pgpy5zDo7L_TJ.pgp Description: PGP signature ___ kde-freebsd mailing list kde-freebsd@kde.org https://mail.kde.org/mailman/listinfo/kde-freebsd See also http://freebsd.kde.org/ for latest information
Re: [kde-freebsd] kwin and GL_OUT_OF_MEMORY
On Sun, 24 Jan 2016 03:27:51 -0500 "Mikhail T."wrote: > The .xsession-errors here is being spammed with the lines like this: > > kwin(18477) KWin::checkGLError: GL error ( PostPaint ): > "GL_OUT_OF_MEMORY" > > The machine uses an NVidia card with two large displays -- a setup > which, probably, does use more than average amounts of memory. > > Is there a way to increase the amount available to OpenGL? The box has > 8Gb of RAM... Thanks! Yours, > > -mi > Hi There's a number of reasons why GL_OUT_OF_MEMORY could be emitted, however the usual advise is to update drivers. I've attached the source of an application that will output video memory information using nvidia's opengl extention. It should build with > cc $(pkg-config --cflags --libs gl glu x11) NVX_gpu_memory_info.c on a box with kde and it's dependencies installed. Do you have any custom xorg.conf tuning? Alonso pgptOMNJAPms1.pgp Description: PGP signature ___ kde-freebsd mailing list kde-freebsd@kde.org https://mail.kde.org/mailman/listinfo/kde-freebsd See also http://freebsd.kde.org/ for latest information
Re: [kde-freebsd] kwin and GL_OUT_OF_MEMORY
On Sun, 24 Jan 2016 23:16:03 +0100 Schaich Alonsowrote: > [...] > I've attached [...] Erm... Another try... Alonso #include #include #include #include #include #include #include #include static int xvisual_attribs[] = { GLX_RGBA, None }; int main (int argc, char **argv) { Display *display; Window window; XSetWindowAttributes win_attribs; XVisualInfo *info; Colormap map; GLXContext context; display = XOpenDisplay(NULL); assert (display != NULL); info = glXChooseVisual (display, DefaultScreen(display), xvisual_attribs); assert (info != NULL); context = glXCreateContext (display, info, NULL, GL_TRUE); assert (context != NULL); map = XCreateColormap (display, RootWindow(display, info->screen), info->visual, AllocNone); win_attribs.colormap = map; window = XCreateWindow (display, RootWindow(display, info->screen), 0, 0, 320, 240, 0, info->depth, InputOutput, info->visual, CWColormap, _attribs); XSetStandardProperties (display, window, "NVX_gpu_memory_info", "NVX_gpu_memory_info", None, argv, argc, NULL); glXMakeCurrent (display, window, context); XMapWindow (display, window); int total, current, evict_cnt, evicted; glGetIntegerv(GL_GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX, ); glGetIntegerv(GL_GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX, ); glGetIntegerv(GL_GPU_MEMORY_INFO_EVICTION_COUNT_NVX, _cnt); glGetIntegerv(GL_GPU_MEMORY_INFO_EVICTED_MEMORY_NVX, ); printf ("GPU_MEMORY_INFO_DEDICATED_VIDMEM_NVX=%d\n", total); printf ("GPU_MEMORY_INFO_CURRENT_AVAILABLE_VIDMEM_NVX=%d\n", current); printf ("GPU_MEMORY_INFO_EVICTION_COUNT_NVX=%d\n", evict_cnt); printf ("GPU_MEMORY_INFO_EVICTED_MEMORY_NVX=%d\n", evicted); return (EXIT_SUCCESS); } pgpCGq0IUZXjl.pgp Description: PGP signature ___ kde-freebsd mailing list kde-freebsd@kde.org https://mail.kde.org/mailman/listinfo/kde-freebsd See also http://freebsd.kde.org/ for latest information