mesa/spirv: move and rename nir_spirv_supported_capabilities
To avoid any vulkan driver to include the GL mtypes.h. Renamed as eventually this could be used by drivers not using nir. v2: remove compiler/spirv/spirv.h from mtypes (Alejandro) v3: added the definition at compiler/shader_info.h (Jason Ekstrand) Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -31,6 +31,19 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
struct spirv_supported_capabilities {
|
||||||
|
bool float64;
|
||||||
|
bool image_ms_array;
|
||||||
|
bool tessellation;
|
||||||
|
bool draw_parameters;
|
||||||
|
bool image_read_without_format;
|
||||||
|
bool image_write_without_format;
|
||||||
|
bool int64;
|
||||||
|
bool multiview;
|
||||||
|
bool variable_pointers;
|
||||||
|
bool storage_16bit;
|
||||||
|
};
|
||||||
|
|
||||||
typedef struct shader_info {
|
typedef struct shader_info {
|
||||||
const char *name;
|
const char *name;
|
||||||
|
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
#define _NIR_SPIRV_H_
|
#define _NIR_SPIRV_H_
|
||||||
|
|
||||||
#include "compiler/nir/nir.h"
|
#include "compiler/nir/nir.h"
|
||||||
#include "main/mtypes.h"
|
#include "compiler/shader_info.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
@@ -58,7 +58,7 @@ struct spirv_to_nir_options {
|
|||||||
*/
|
*/
|
||||||
bool lower_workgroup_access_to_offsets;
|
bool lower_workgroup_access_to_offsets;
|
||||||
|
|
||||||
struct nir_spirv_supported_capabilities caps;
|
struct spirv_supported_capabilities caps;
|
||||||
|
|
||||||
struct {
|
struct {
|
||||||
void (*func)(void *private_data,
|
void (*func)(void *private_data,
|
||||||
|
@@ -3578,19 +3578,6 @@ struct gl_program_constants
|
|||||||
GLuint MaxShaderStorageBlocks;
|
GLuint MaxShaderStorageBlocks;
|
||||||
};
|
};
|
||||||
|
|
||||||
struct nir_spirv_supported_capabilities {
|
|
||||||
bool float64;
|
|
||||||
bool image_ms_array;
|
|
||||||
bool tessellation;
|
|
||||||
bool draw_parameters;
|
|
||||||
bool image_read_without_format;
|
|
||||||
bool image_write_without_format;
|
|
||||||
bool int64;
|
|
||||||
bool multiview;
|
|
||||||
bool variable_pointers;
|
|
||||||
bool storage_16bit;
|
|
||||||
};
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constants which may be overridden by device driver during context creation
|
* Constants which may be overridden by device driver during context creation
|
||||||
* but are never changed after that.
|
* but are never changed after that.
|
||||||
|
Reference in New Issue
Block a user