summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/swr/rasterizer/codegen
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-04-07 11:41:25 -0500
committerTim Rowley <[email protected]>2017-04-11 18:01:03 -0500
commit7abd1f9b2462e5b050e91630b73c71e9128f5683 (patch)
treedef42d13e7f6eeeffd807a7bc6c099eec82e39ff /src/gallium/drivers/swr/rasterizer/codegen
parent54d11b3c95f7baec6fda8583876f696bac17a1a2 (diff)
swr: [rasterizer archrast] Fix archrast for MSVC 2017 compiler
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium/drivers/swr/rasterizer/codegen')
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp2
-rw-r--r--src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp
index d48fda61c2a..1ecb455c3a1 100644
--- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp
+++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.cpp
@@ -37,7 +37,7 @@
using namespace ArchRast;
% for name in protos['event_names']:
-void ${name}::Accept(EventHandler* pHandler)
+void ${name}::Accept(EventHandler* pHandler) const
{
pHandler->Handle(*this);
}
diff --git a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp
index e792f5f63e6..685a10b3867 100644
--- a/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp
+++ b/src/gallium/drivers/swr/rasterizer/codegen/templates/gen_ar_event.hpp
@@ -57,7 +57,7 @@ namespace ArchRast
Event() {}
virtual ~Event() {}
- virtual void Accept(EventHandler* pHandler) = 0;
+ virtual void Accept(EventHandler* pHandler) const = 0;
};
% for name in protos['event_names']:
@@ -102,7 +102,7 @@ namespace ArchRast
% endfor
}
- virtual void Accept(EventHandler* pHandler);
+ virtual void Accept(EventHandler* pHandler) const;
};
% endfor
} \ No newline at end of file