mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-23 21:58:57 -05:00
Fix validation errors on less compatible Intel GPU
This commit is contained in:
@ -1380,6 +1380,10 @@ void Device::SetupFeatures() {
|
||||
is_shader_storage_image_multisample = features.shaderStorageImageMultisample;
|
||||
is_blit_depth_stencil_supported = TestDepthStencilBlits();
|
||||
is_optimal_astc_supported = IsOptimalAstcSupported(features);
|
||||
|
||||
const VkPhysicalDeviceLimits& limits{properties.limits};
|
||||
max_vertex_input_attributes = limits.maxVertexInputAttributes;
|
||||
max_vertex_input_bindings = limits.maxVertexInputBindings;
|
||||
}
|
||||
|
||||
void Device::SetupProperties() {
|
||||
|
@ -368,6 +368,14 @@ public:
|
||||
return must_emulate_bgr565;
|
||||
}
|
||||
|
||||
u32 GetMaxVertexInputAttributes() const {
|
||||
return max_vertex_input_attributes;
|
||||
}
|
||||
|
||||
u32 GetMaxVertexInputBindings() const {
|
||||
return max_vertex_input_bindings;
|
||||
}
|
||||
|
||||
private:
|
||||
/// Checks if the physical device is suitable.
|
||||
void CheckSuitability(bool requires_swapchain) const;
|
||||
@ -467,6 +475,8 @@ private:
|
||||
bool supports_d24_depth{}; ///< Supports D24 depth buffers.
|
||||
bool cant_blit_msaa{}; ///< Does not support MSAA<->MSAA blitting.
|
||||
bool must_emulate_bgr565{}; ///< Emulates BGR565 by swizzling RGB565 format.
|
||||
u32 max_vertex_input_attributes{}; ///< Max vertex input attributes in pipeline
|
||||
u32 max_vertex_input_bindings{}; ///< Max vertex input buffers in pipeline
|
||||
|
||||
// Telemetry parameters
|
||||
std::string vendor_name; ///< Device's driver name.
|
||||
|
Reference in New Issue
Block a user