GPUOpen-Tools / radeon_gpu_analyzer

The Radeon GPU Analyzer (RGA) is an offline compiler and code analysis tool for Vulkan, DirectX, OpenGL, and OpenCL.
MIT License
415 stars 53 forks source link

Extension name defined even if not supported or enabled #99

Closed BoyBaykiller closed 1 year ago

BoyBaykiller commented 2 years ago

Using RGA 2.6.2 the name of the following extensions are defined even though the RX 5700 XT I am running this on doesnt support them.

Example:

#version 460 core

#ifdef GL_NV_compute_shader_derivatives 
// code in here is supposed to be ignored but it's not
#endif

If I run this code through a OpenGL application it behaves as expected.

I assume this is the case for more extensions than the ones I listed.

BoyBaykiller commented 2 years ago

I noticed these extensions were added in the recent driver release 22.7.1. As far as this goes this issue can be closed.

I have a question about GL_NV_shading_rate_image though. Why can I use glsl functionality from this extension but can't load the functions introduced by it. Are client side functions like BindShadingRateImageNV not implemented yet?

AmitBM commented 1 year ago

GL_NV_compute_shader_derivativesshould be supported by the driver soon. There is no plan for supporting GL_NV_shading_rate_image and GL_NV_viewport_array2. These should have been disabled in the driver - will be fixed in a future driver release.