Closed
Bug 1401268
Opened 7 years ago
Closed 1 year ago
Sometimes selecting d3d10 WARP when we should be using the GPU to composite layers
Categories
(Core :: Graphics, defect, P2)
Core
Graphics
Tracking
()
People
(Reporter: mconley, Unassigned)
References
Details
(Whiteboard: [gfx-noted])
Spinning this out from bug 1397092. Here is a profile from a user when they've got the GPU process enabled. Try to ignore the lack of XUL symbols, and focus on the compositor process: https://perfht.ml/2jI7dYR here's a profile from the same user (and presumably the same machine) when the compositor process is disabled: https://perfht.ml/2jGWPR6 According to jrmuizel, we should never be falling back to WARP. I have no idea how widespread this is. Here's the user's about:support: Application Basics ------------------ Name: Firefox Version: 57.0a1 Build ID: 20170907100318 Update Channel: nightly User Agent: Mozilla/5.0 (Windows NT 10.0; rv:57.0) Gecko/20100101 Firefox/57.0 OS: Windows_NT 10.0 Multiprocess Windows: 1/1 (Enabled by default) Web Content Processes: 3/4 Stylo: true (enabled by default) Google Key: Found Mozilla Location Service Key: Found Safe Mode: false Crash Reports for the Last 3 Days --------------------------------- All Crash Reports Nightly Features ---------------- Name: Activity Stream Version: 2017.09.01.1439-222d033f ID: activity-stream@mozilla.org Name: Application Update Service Helper Version: 2.0 ID: aushelper@mozilla.org Name: Click-to-Play staged rollout Version: 1.2 ID: clicktoplay-rollout@mozilla.org Name: Firefox Screenshots Version: 16.1.0 ID: screenshots@mozilla.org Name: FlyWeb Version: 1.0.0 ID: flyweb@mozilla.org Name: Follow-on Search Telemetry Version: 0.9.3 ID: followonsearch@mozilla.com Name: Form Autofill Version: 1.0 ID: formautofill@mozilla.org Name: Multi-process staged rollout Version: 3.00 ID: e10srollout@mozilla.org Name: Photon onboarding Version: 0.1 ID: onboarding@mozilla.org Name: Pocket Version: 1.0.5 ID: firefox@getpocket.com Name: Presentation Version: 1.0.0 ID: presentation@mozilla.org Name: Shield Recipe Client Version: 65 ID: shield-recipe-client@mozilla.org Name: Web Compat Version: 1.1 ID: webcompat@mozilla.org Name: WebCompat Reporter Version: 1.0.0 ID: webcompat-reporter@mozilla.org Extensions ---------- Graphics -------- Features Compositing: Direct3D 11 (Advanced Layers) Asynchronous Pan/Zoom: wheel input enabled; scrollbar drag enabled; keyboard enabled; autoscroll enabled WebGL 1 Driver WSI Info: EGL_VENDOR: Google Inc. (adapter LUID: 000000000000dc03) EGL_VERSION: 1.4 (ANGLE 2.1.0.dec065540d5f) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture_nv12 EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses WebGL 1 Driver Renderer: Google Inc. -- ANGLE (AMD Radeon HD 7420G Direct3D11 vs_5_0 ps_5_0) WebGL 1 Driver Version: OpenGL ES 2.0 (ANGLE 2.1.0.dec065540d5f) WebGL 1 Driver Extensions: GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_pack_reverse_row_order GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object WebGL 1 Extensions: ANGLE_instanced_arrays EXT_blend_minmax EXT_color_buffer_half_float EXT_frag_depth EXT_shader_texture_lod EXT_texture_filter_anisotropic EXT_disjoint_timer_query MOZ_debug OES_element_index_uint OES_standard_derivatives OES_texture_float OES_texture_float_linear OES_texture_half_float OES_texture_half_float_linear OES_vertex_array_object WEBGL_color_buffer_float WEBGL_compressed_texture_s3tc WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_depth_texture WEBGL_draw_buffers WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc MOZ_WEBGL_depth_texture WebGL 2 Driver WSI Info: EGL_VENDOR: Google Inc. (adapter LUID: 000000000000dc03) EGL_VERSION: 1.4 (ANGLE 2.1.0.dec065540d5f) EGL_EXTENSIONS: EGL_EXT_create_context_robustness EGL_ANGLE_d3d_share_handle_client_buffer EGL_ANGLE_d3d_texture_client_buffer EGL_ANGLE_surface_d3d_texture_2d_share_handle EGL_ANGLE_query_surface_pointer EGL_ANGLE_window_fixed_size EGL_ANGLE_keyed_mutex EGL_ANGLE_surface_orientation EGL_ANGLE_direct_composition EGL_NV_post_sub_buffer EGL_KHR_create_context EGL_EXT_device_query EGL_KHR_image EGL_KHR_image_base EGL_KHR_gl_texture_2D_image EGL_KHR_gl_texture_cubemap_image EGL_KHR_gl_renderbuffer_image EGL_KHR_get_all_proc_addresses EGL_KHR_stream EGL_KHR_stream_consumer_gltexture EGL_NV_stream_consumer_gltexture_yuv EGL_ANGLE_flexible_surface_compatibility EGL_ANGLE_stream_producer_d3d_texture_nv12 EGL_ANGLE_create_context_webgl_compatibility EGL_CHROMIUM_create_context_bind_generates_resource EGL_EXTENSIONS(nullptr): EGL_EXT_client_extensions EGL_EXT_platform_base EGL_EXT_platform_device EGL_ANGLE_platform_angle EGL_ANGLE_platform_angle_d3d EGL_ANGLE_device_creation EGL_ANGLE_device_creation_d3d11 EGL_ANGLE_experimental_present_path EGL_KHR_client_get_all_proc_addresses WebGL 2 Driver Renderer: Google Inc. -- ANGLE (AMD Radeon HD 7420G Direct3D11 vs_5_0 ps_5_0) WebGL 2 Driver Version: OpenGL ES 3.0 (ANGLE 2.1.0.dec065540d5f) WebGL 2 Driver Extensions: GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_lossy_etc_decode GL_ANGLE_pack_reverse_row_order GL_ANGLE_request_extension GL_ANGLE_robust_client_memory GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_CHROMIUM_bind_generates_resource GL_CHROMIUM_bind_uniform_location GL_CHROMIUM_copy_compressed_texture GL_CHROMIUM_copy_texture GL_CHROMIUM_sync_query GL_EXT_blend_minmax GL_EXT_color_buffer_float GL_EXT_color_buffer_half_float GL_EXT_debug_marker GL_EXT_discard_framebuffer GL_EXT_disjoint_timer_query GL_EXT_draw_buffers GL_EXT_frag_depth GL_EXT_map_buffer_range GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_sRGB GL_EXT_shader_texture_lod GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_norm16 GL_EXT_texture_rg GL_EXT_texture_storage GL_EXT_unpack_subimage GL_KHR_debug GL_NV_EGL_stream_consumer_external GL_NV_fence GL_NV_pack_subimage GL_NV_pixel_buffer_object GL_OES_EGL_image GL_OES_EGL_image_external GL_OES_EGL_image_external_essl3 GL_OES_compressed_ETC1_RGB8_texture GL_OES_depth32 GL_OES_element_index_uint GL_OES_get_program_binary GL_OES_mapbuffer GL_OES_packed_depth_stencil GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_npot GL_OES_vertex_array_object WebGL 2 Extensions: EXT_color_buffer_float EXT_texture_filter_anisotropic EXT_disjoint_timer_query MOZ_debug OES_texture_float_linear WEBGL_compressed_texture_s3tc WEBGL_debug_renderer_info WEBGL_debug_shaders WEBGL_lose_context MOZ_WEBGL_lose_context MOZ_WEBGL_compressed_texture_s3tc Direct2D: true DirectWrite: true (10.0.16251.0) GPU #1 Active: Yes Description: AMD Radeon HD 7420G Driver Version: 15.200.1062.1002 Driver Date: 3-01-2016 Drivers: aticfx32 aticfx32 aticfx32 atiumdag atidxx32 atiumdva Subsys ID: 3564103c RAM: 1024 Diagnostics AzureCanvasAccelerated: 0 AzureCanvasBackend: Direct2D 1.1 AzureCanvasBackend (UI Process): skia AzureContentBackend: Direct2D 1.1 AzureContentBackend (UI Process): skia AzureFallbackCanvasBackend (UI Process): cairo GPUProcessPid: 6072 GPUProcess: Terminate GPU Process Device Reset: Trigger Device Reset Decision Log WEBRENDER: opt-in by default: WebRender is an opt-in feature Media ----- Audio Backend: wasapi Max Channels: 2 Preferred Channel Layout: stereo Preferred Sample Rate: 48000 Output Devices Name: Group Speakers (High Definition Audio Device): HDAUDIO\FUNC_01&VEN_111D&DEV_7605&SUBSYS_103C3564&REV_1001\4&101cf511&0&0001 Internal AUX Jack (High Definition Audio Device): HDAUDIO\FUNC_01&VEN_111D&DEV_7605&SUBSYS_103C3564&REV_1001\4&101cf511&0&0001 AMD HDMI Output (AMD High Definition Audio Device): HDAUDIO\FUNC_01&VEN_1002&DEV_AA01&SUBSYS_00AA0100&REV_1002\4&c5953c7&0&0001 Input Devices Name: Group Microphone (High Definition Audio Device): HDAUDIO\FUNC_01&VEN_111D&DEV_7605&SUBSYS_103C3564&REV_1001\4&101cf511&0&0001 Microphone (High Definition Audio Device): HDAUDIO\FUNC_01&VEN_111D&DEV_7605&SUBSYS_103C3564&REV_1001\4&101cf511&0&0001 AMD HDMI Output (AMD High Definition Audio Device): HDAUDIO\FUNC_01&VEN_1002&DEV_AA01&SUBSYS_00AA0100&REV_1002\4&c5953c7&0&0001 Important Modified Preferences ------------------------------ browser.cache.disk.capacity: 0 browser.cache.disk.filesystem_reported: 1 browser.cache.disk.smart_size.enabled: false browser.cache.disk.smart_size.first_run: false browser.cache.frecency_experiment: 4 browser.download.useDownloadDir: false browser.places.importBookmarksHTML: false browser.places.smartBookmarksVersion: 8 browser.sessionstore.upgradeBackup.latestBuildID: 20170907100318 browser.startup.homepage_override.buildID: 20170907100318 browser.startup.homepage_override.mstone: 57.0a1 browser.urlbar.lastSuggestionsPromptDate: 20170907 browser.urlbar.timesBeforeHidingSuggestionsHint: 0 dom.forms.autocomplete.formautofill: true extensions.lastAppVersion: 57.0a1 layers.mlgpu.sanity-test-failed: false media.gmp-gmpopenh264.abi: x86-msvc-x86 media.gmp-gmpopenh264.lastUpdate: 1504794579 media.gmp-gmpopenh264.version: 1.6 media.gmp-manager.buildID: 20170907100318 media.gmp-manager.lastCheck: 1504800662 media.gmp-widevinecdm.abi: x86-msvc-x86 media.gmp-widevinecdm.lastUpdate: 1504794588 media.gmp-widevinecdm.version: 1.4.8.1008 media.gmp.storage.version.observed: 1 media.hardware-video-decoding.failed: false network.cookie.prefsMigrated: true network.predictor.cleaned-up: true places.history.expiration.transient_current_max_pages: 104858 plugin.disable_full_page_plugin_for_types: application/pdf security.sandbox.content.tempDirSuffix: {b1ef002c-5f77-4753-b341-3e3a02789513} services.sync.engine.addresses.available: true ui.osk.debug.keyboardDisplayReason: IKPOS: Touch screen not found. Important Locked Preferences ---------------------------- Places Database --------------- JavaScript ---------- Incremental GC: true Accessibility ------------- Activated: false Prevent Accessibility: 0 Accessible Handler Used: false Accessibility Instantiator: Library Versions ---------------- NSPR Expected minimum version: 4.17 Beta Version in use: 4.17 Beta NSS Expected minimum version: 3.33 Beta Version in use: 3.33 Beta NSSSMIME Expected minimum version: 3.33 Beta Version in use: 3.33 Beta NSSSSL Expected minimum version: 3.33 Beta Version in use: 3.33 Beta NSSUTIL Expected minimum version: 3.33 Beta Version in use: 3.33 Beta Experimental Features --------------------- Sandbox ------- Content Process Sandbox Level: 4 Effective Content Process Sandbox Level: 4
That is pretty bizarre. I'm assuming the user does not have layers.d3d11.force-warp set to true? Either D3D11 is falling back on its own accord or somehow the GPU process is seeing that pref as true. Would a diagnostic patch help?
Reporter | ||
Comment 2•7 years ago
|
||
(In reply to David Anderson [:dvander] from comment #1) > That is pretty bizarre. I'm assuming the user does not have > layers.d3d11.force-warp set to true? I can ask. > > Either D3D11 is falling back on its own accord or somehow the GPU process is > seeing that pref as true. Would a diagnostic patch help? Sure, I can try to get them to run it. Also note that in the about:support, the Device and Vendor ID's are not listed for the graphics card. I'm not sure if that's relevant, but it got jrmuizel's attention.
If we've somehow regressed this in 57, we should fix it. If it's an ongoing thing for a configuration or two, not worried. Mike, can you also ask for a mozregression range? :)
Assignee: nobody → milan
status-firefox56:
--- → ?
status-firefox57:
--- → affected
Flags: needinfo?(mconley)
Priority: -- → P1
Whiteboard: [gfx-noted]
Reporter | ||
Comment 4•7 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #3) Possibly. Is there a way to determine that WARP is being used by the compositor process without dumping a profile?
Flags: needinfo?(mconley) → needinfo?(milan)
The about:support is really suspect. We're only allowing WARP with a force preference, and when we force it, we don't allow D2D1.1 with WARP, forced or not. about:support above shows D2D 1.1 and D3D11, not warp. If warp is forced, we record that in App Notes (but I don't know if you can get to that without crashing :). I thought there was telemetry as well, but I can't now find it.
Flags: needinfo?(milan)
Updated•7 years ago
|
Priority: P1 → P3
Reporter | ||
Comment 6•7 years ago
|
||
(In reply to Milan Sreckovic [:milan] from comment #5) > > If warp is forced, we record that in App Notes (but I don't know if you can > get to that without crashing :). I thought there was telemetry as well, but > I can't now find it. Doesn't look like we're forcing it enabled, at least according to this crash report from the user: https://crash-stats.mozilla.com/report/index/9a853e1e-7cdb-4dc2-9682-c41af0170916#tab-telemetryenvironment and the Telemetry Environment suggests that WARP is disabled too. But those profiles are coming from somewhere.
Updated•6 years ago
|
Assignee: milaninbugzilla → nobody
Comment 7•6 years ago
|
||
This problem has showed up again, at https://bugzilla.mozilla.org/show_bug.cgi?id=1446667#c30 ni? davidb in case we want to try increase the priority of this bug.
Flags: needinfo?(dbolter)
Updated•6 years ago
|
Flags: needinfo?(dbolter)
Comment 8•6 years ago
|
||
Yeah, would be good to know how WARP shows up. Hopefully Jason can try your bug 1446667 comment 30...
Priority: P3 → P2
Updated•6 years ago
|
status-firefox61:
--- → affected
status-firefox62:
--- → affected
status-firefox-esr52:
--- → ?
status-firefox-esr60:
--- → ?
(In reply to David Bolter [:davidb] (NeedInfo me for attention) from comment #8) > Yeah, would be good to know how WARP shows up. Hopefully Jason can try your > bug 1446667 comment 30... any fix or tests being run to find cause?
Flags: needinfo?(dbolter)
Comment 10•6 years ago
|
||
I'm not aware of any next steps in this bug or bug 1446667. It is hard to know how to prioritize this bug.
Flags: needinfo?(dbolter)
Updated•2 years ago
|
Severity: normal → S3
Comment 11•1 year ago
|
||
This scenario is no longer possible
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•