<div dir="ltr">Reviewed-by: Jason Ekstrand <<a href="mailto:jason@jlekstrand.net">jason@jlekstrand.net</a>><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 17, 2017 at 9:03 AM, Robert Bragg <span dir="ltr"><<a href="mailto:robert@sixbynine.org" target="_blank">robert@sixbynine.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I've just pushed an old patch (was already reviewed, but I never followed up on<br>
it) that added a timebase_scale to gen_device_info so we can use that instead<br>
here instead.<br>
<br>
--- >8 ---<br>
<br>
Now that there's a timebase_scale in gen_device_info which is<br>
effectively the 'period' this switches anv_<wbr>GetPhysicalDeviceProperties<br>
to using this common device info to initialize the timestampPeriod<br>
device limit.<br>
<br>
Signed-off-by: Robert Bragg <<a href="mailto:robert@sixbynine.org">robert@sixbynine.org</a>><br>
---<br>
src/intel/vulkan/anv_device.c | 4 +---<br>
1 file changed, 1 insertion(+), 3 deletions(-)<br>
<br>
diff --git a/src/intel/vulkan/anv_device.<wbr>c b/src/intel/vulkan/anv_device.<wbr>c<br>
index fcfbd5fd6b..748d70327e 100644<br>
--- a/src/intel/vulkan/anv_device.<wbr>c<br>
+++ b/src/intel/vulkan/anv_device.<wbr>c<br>
@@ -535,8 +535,6 @@ void anv_<wbr>GetPhysicalDeviceProperties(<br>
ANV_FROM_HANDLE(anv_physical_<wbr>device, pdevice, physicalDevice);<br>
const struct gen_device_info *devinfo = &pdevice->info;<br>
<br>
- const float time_stamp_base = devinfo->gen >= 9 ? 83.333 : 80.0;<br>
-<br>
/* See assertions made when programming the buffer surface state. */<br>
const uint32_t max_raw_buffer_sz = devinfo->gen >= 7 ?<br>
(1ul << 30) : (1ul << 27);<br>
@@ -641,7 +639,7 @@ void anv_<wbr>GetPhysicalDeviceProperties(<br>
.storageImageSampleCounts = VK_SAMPLE_COUNT_1_BIT,<br>
.maxSampleMaskWords = 1,<br>
.timestampComputeAndGraphics = false,<br>
- .timestampPeriod = time_stamp_base,<br>
+ .timestampPeriod = devinfo->timebase_scale,<br>
.maxClipDistances = 8,<br>
.maxCullDistances = 8,<br>
.<wbr>maxCombinedClipAndCullDistance<wbr>s = 8,<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.12.0<br>
<br>
______________________________<wbr>_________________<br>
mesa-dev mailing list<br>
<a href="mailto:mesa-dev@lists.freedesktop.org">mesa-dev@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/mesa-dev" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/mesa-dev</a><br>
</font></span></blockquote></div><br></div>