Skip to content

Commit

Permalink
Vulkan: ES3 dEQP suppressions
Browse files Browse the repository at this point in the history
This re-enables Vulkan ES3 context creation and adds the necessary dEQP
suppressions.

Bug: angleproject:2950
Change-Id: Ic24a9fb4f867f3bce08f101e056f208abf84bb5e
Reviewed-on: https://chromium-review.googlesource.com/c/1483311
Commit-Queue: Shahbaz Youssefi <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
  • Loading branch information
Shahbaz Youssefi authored and Commit Bot committed Feb 28, 2019
1 parent aaa17b8 commit 9dc8eaf
Show file tree
Hide file tree
Showing 5 changed files with 520 additions and 322 deletions.
3 changes: 3 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ config("internal_config") {
if (angle_enable_vulkan_gpu_trace_events) {
defines += [ "ANGLE_ENABLE_VULKAN_GPU_TRACE_EVENTS=1" ]
}
if (angle_vulkan_conformant_configs_only) {
defines += [ "ANGLE_VULKAN_CONFORMANT_CONFIGS_ONLY=1" ]
}
}

if (angle_enable_trace) {
Expand Down
5 changes: 4 additions & 1 deletion gni/angle.gni
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

import("//build_overrides/angle.gni")
import("//build/config/sanitizers/sanitizers.gni")
import("//build/config/ui.gni") # import the use_x11 variable
import("//build_overrides/angle.gni")
import("//build_overrides/build.gni")
import("//testing/test.gni")
if (is_android) {
Expand Down Expand Up @@ -81,6 +81,9 @@ declare_args() {
if (angle_enable_vulkan) {
# Enable Vulkan GPU trace event capability
angle_enable_vulkan_gpu_trace_events = false

# Disallow non-conformant configurations
angle_vulkan_conformant_configs_only = false
}
}

Expand Down
8 changes: 6 additions & 2 deletions src/libANGLE/renderer/vulkan/RendererVk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1126,8 +1126,12 @@ std::string RendererVk::getRendererDescription() const
gl::Version RendererVk::getMaxSupportedESVersion() const
{
// Current highest supported version
// TODO: Update this to support ES 3.0. http://crbug.com/angleproject/2950
gl::Version maxVersion = gl::Version(2, 0);
gl::Version maxVersion = gl::Version(3, 0);

#if ANGLE_VULKAN_CONFORMANT_CONFIGS_ONLY
// TODO: Disallow ES 3.0 until supported. http://crbug.com/angleproject/2950
maxVersion = gl::Version(2, 0);
#endif

// Vulkan inherited queries are required to support any GL query type
if (!mPhysicalDeviceFeatures.inheritedQueries)
Expand Down
Loading

0 comments on commit 9dc8eaf

Please sign in to comment.