changeset 4559:dd45e55248c8

WaveFront: add new function to enable all rows
author Deepthi Devaki <deepthidevaki@multicorewareinc.com>
date Fri, 18 Oct 2013 17:01:32 +0530
parents 4066e6e725ee
children c96f97cf3914
files source/common/wavefront.cpp source/common/wavefront.h
diffstat 2 files changed, 7 insertions(+-), 0 deletions(-) [+]
line wrap: on
line diff
--- a/source/common/wavefront.cpp	Fri Oct 18 15:00:40 2013 -0500
+++ b/source/common/wavefront.cpp	Fri Oct 18 17:01:32 2013 +0530
@@ -82,6 +82,11 @@ void WaveFront::enableRow(int row)
     ATOMIC_OR(&m_enableBitmap[row >> 6], bit);
 }
 
+void WaveFront::enableAllRows()
+{
+    memset((void*)m_enableBitmap, ~0, sizeof(uint64_t) * m_numWords);
+}
+
 bool WaveFront::checkHigherPriorityRow(int curRow)
 {
     int fullwords = curRow >> 6;
--- a/source/common/wavefront.h	Fri Oct 18 15:00:40 2013 -0500
+++ b/source/common/wavefront.h	Fri Oct 18 17:01:32 2013 +0530
@@ -67,6 +67,8 @@ public:
 
     void enableRow(int row);
 
+    void enableAllRows();
+
     void clearEnabledRowMask();
 
     // Returns true if a row above curRow is available for processing.  The processRow()