Commit a3aa15c5 authored by kbr's avatar kbr Committed by Commit bot

Change naming convention for Android pixel reference images.

The Nexus 9 and Pixel C on the waterfall have the same GPU device string
but different screen resolutions, causing collisions between their pixel
test reference images. Add in the model name ("Nexus 9", "AOSP on
dragon") to disambiguate them.

BUG=624621
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel
TBR=vmiura@chromium.org,zmo@chromium.org

Review-Url: https://codereview.chromium.org/2176003002
Cr-Commit-Position: refs/heads/master@{#407348}
parent 8f718e9a
...@@ -96,6 +96,7 @@ class ValidatorBase(gpu_test_base.ValidatorBase): ...@@ -96,6 +96,7 @@ class ValidatorBase(gpu_test_base.ValidatorBase):
self.vendor_string = None self.vendor_string = None
self.device_string = None self.device_string = None
self.msaa = False self.msaa = False
self.model_name = None
### ###
### Routines working with the local disk (only used for local ### Routines working with the local disk (only used for local
...@@ -165,6 +166,7 @@ class ValidatorBase(gpu_test_base.ValidatorBase): ...@@ -165,6 +166,7 @@ class ValidatorBase(gpu_test_base.ValidatorBase):
system_info.gpu.driver_bug_workarounds) or system_info.gpu.driver_bug_workarounds) or
('disable_multisample_render_to_texture' in ('disable_multisample_render_to_texture' in
system_info.gpu.driver_bug_workarounds)) system_info.gpu.driver_bug_workarounds))
self.model_name = system_info.model_name
def _FormatGpuInfo(self, tab): def _FormatGpuInfo(self, tab):
self._ComputeGpuInfo(tab) self._ComputeGpuInfo(tab)
...@@ -173,9 +175,14 @@ class ValidatorBase(gpu_test_base.ValidatorBase): ...@@ -173,9 +175,14 @@ class ValidatorBase(gpu_test_base.ValidatorBase):
return '%s_%04x_%04x%s' % ( return '%s_%04x_%04x%s' % (
self.options.os_type, self.vendor_id, self.device_id, msaa_string) self.options.os_type, self.vendor_id, self.device_id, msaa_string)
else: else:
return '%s_%s_%s%s' % ( # This is the code path for Android devices. Include the model
# name (e.g. "Nexus 9") in the GPU string to disambiguate
# multiple devices on the waterfall which might have the same
# device string ("NVIDIA Tegra") but different screen
# resolutions and device pixel ratios.
return '%s_%s_%s_%s%s' % (
self.options.os_type, self.vendor_string, self.device_string, self.options.os_type, self.vendor_string, self.device_string,
msaa_string) self.model_name, msaa_string)
def _FormatReferenceImageName(self, img_name, page, tab): def _FormatReferenceImageName(self, img_name, page, tab):
return '%s_v%s_%s.png' % ( return '%s_v%s_%s.png' % (
......
...@@ -30,3 +30,7 @@ class PixelExpectations(GpuTestExpectations): ...@@ -30,3 +30,7 @@ class PixelExpectations(GpuTestExpectations):
# TODO(erikchen) check / generate reference images. # TODO(erikchen) check / generate reference images.
self.Fail('Pixel.CSSFilterEffects', ['mac'], bug=581526) self.Fail('Pixel.CSSFilterEffects', ['mac'], bug=581526)
self.Fail('Pixel.CSSFilterEffects.NoOverlays', ['mac'], bug=581526) self.Fail('Pixel.CSSFilterEffects.NoOverlays', ['mac'], bug=581526)
# TODO(kbr): remove once expectations for Android have been
# generated using the new naming convention.
self.Fail('*', ['android'], bug=624621)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment