jit.gl.pix and AMD Radeon 680M Graphics issues
hello,
I am running into issues with jit.gl.pix and my Radeon 680M Graphics card.
Whenever I add a call to sample() in my connected codebox i get an unkown error in the max console with every attempt to execute the shader and then max frequently crashes shortly after. I have an older laptop that runs the equivalent code with no issues so it appears to by a graphics card/driver specific issue. I have rolled back the engine to gl2 as a work around but would love to know if there's anything else that i can do to troubleshoot or fix the issue. especially since i bought this mini pc to have something that i could run max on ;(
Thanks for your suggestions.
that’s a new one to me. I would first make doubly sure you have updated drivers, and if there are multiple GPUs, Max is configured to use the AMD.
If that’s all already the case, please send along a patch
Hi Rob,
Sorry to be slow, switching between projects.
Thanks for your reply, yes the drivers are up to date and only one GPU
Ok i am a gl shader nube so it took me a minute to isolate.
When i input 8 textures it would error as above, and with 7 textures it was fine.
In my GL status it seemed to indicate an 8 texture limit ("MAX_DRAW_BUFFERS": [ 8 ],) but looks like it might be only 7 ...
thanks!
here is my gl status (without extensions b/c verbose):
"Renderer": "AMD Radeon(TM) Graphics",
"Vendor Name": "ATI Technologies Inc.",
"Version": "4.6.0 Core Profile Context 26.6.2.260608",
"GLSL Version": "4.60",
"OpenGL Limits": {
"Framebuffers": {
"MAX_COLOR_ATTACHMENTS": [ 8 ],
"MAX_RENDERBUFFER_SIZE": [ 16384 ],
"MAX_VIEWPORT_DIMS": [ 16384, 16384 ],
"MAX_DRAW_BUFFERS": [ 8 ],
"SUBPIXEL_BITS": [ 8 ]
},
"Points and Lines": {
"ALIASED_LINE_WIDTH_RANGE": [ 1, 8191 ],
"SMOOTH_LINE_WIDTH_GRANULARITY": [ 0.125 ],
"SMOOTH_LINE_WIDTH_RANGE": [ 1, 63 ],
"SMOOTH_POINT_SIZE_GRANULARITY": [ 0.125 ],
"SMOOTH_POINT_SIZE_RANGE": [ 1, 8192 ]
},
"Textures": {
"MAX_3D_TEXTURE_SIZE": [ 8192 ],
"MAX_CUBE_MAP_TEXTURE_SIZE": [ 16384 ],
"MAX_RECTANGLE_TEXTURE_SIZE": [ 16384 ],
"MAX_TEXTURE_SIZE": [ 16384 ],
"MAX_TEXTURE_LOD_BIAS": [ 16 ],
"MAX_TEXTURE_MAX_ANISOTROPY_EXT": [ 16 ]
},
"Shaders": {
"MAX_COMBINED_TEXTURE_IMAGE_UNITS": [ 160 ],
"MAX_FRAGMENT_UNIFORM_COMPONENTS": [ 8000 ],
"MAX_TEXTURE_IMAGE_UNITS": [ 32 ],
"MAX_VERTEX_ATTRIBS": [ 32 ],
"MAX_VERTEX_TEXTURE_IMAGE_UNITS": [ 32 ],
"MAX_VERTEX_UNIFORM_COMPONENTS": [ 8000 ]
}
},
Hi, i was able to isolate it even further to ... as soon as i add the 8th input [in 8] to the jit.gl.pix window i get the error or immediate crash on object execution (ie bang or texture at leftmost inlet)
I would think MAX_TEXTURE_IMAGE_UNITS is the relevant limit for this. Feel free to post a patch so that we can track this.