Skip to content

Commit

Permalink
DisplayWgpu: Remove wgpu::FeatureName::SurfaceCapabilities
Browse files Browse the repository at this point in the history
This feature used to allow querying the wgpu::TextureUsage allowed with
a wgpu::Surface. This is no longer necessary to have as an extension
since wgpu::Surface supports this capability by default (after it was
made a replacement of wgpu::SwapChain).

Remove the now useless mention of this feature that was blocking the
removal of the feature's code from Dawn.

Bug: b/42241264
Change-Id: Ia097f2f6077fa655a2b4b495cdcf3f1fa5f23d55
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/5904059
Commit-Queue: Geoff Lang <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
  • Loading branch information
Kangz authored and Angle LUCI CQ committed Oct 2, 2024
1 parent f680925 commit be8cc06
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/libANGLE/renderer/wgpu/DisplayWgpu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,8 +284,7 @@ egl::Error DisplayWgpu::createWgpuDevice()

mAdapter = adapterResult.adapter;

std::vector<wgpu::FeatureName> requiredFeatures;
requiredFeatures.push_back(wgpu::FeatureName::SurfaceCapabilities);
std::vector<wgpu::FeatureName> requiredFeatures; // empty for now

wgpu::DeviceDescriptor deviceDesc;
deviceDesc.requiredFeatureCount = requiredFeatures.size();
Expand Down

0 comments on commit be8cc06

Please sign in to comment.