[packages/ClanLib] - update non-sse swrender to current api

baggins baggins at pld-linux.org
Tue Nov 5 21:48:42 CET 2013


commit 9fe0dc219c2ecbd713513f81b5ad5bc664e6cf00
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Tue Nov 5 21:48:27 2013 +0100

    - update non-sse swrender to current api

 really-disable-sse2.patch | 192 ++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 192 insertions(+)
---
diff --git a/really-disable-sse2.patch b/really-disable-sse2.patch
index 3938367..1ba1587 100644
--- a/really-disable-sse2.patch
+++ b/really-disable-sse2.patch
@@ -299,3 +299,195 @@
  
  
  namespace clan
+--- ClanLib-3.0.0/Sources/SWRender/X11/Stub/setup_swrender.cpp~	2013-09-24 13:53:31.000000000 +0200
++++ ClanLib-3.0.0/Sources/SWRender/X11/Stub/setup_swrender.cpp	2013-11-05 21:47:15.449955252 +0100
+@@ -34,22 +34,22 @@
+ // NON-SSE2 STUB
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_SetupSWRender Construction:
++// SetupSWRender Construction:
+ 
+-CL_SetupSWRender::CL_SetupSWRender()
++SetupSWRender::SetupSWRender()
+ {
+-	if (CL_System::detect_cpu_extension(CL_System::sse2))
++	if (System::detect_cpu_extension(System::sse2))
+ 	{
+-		throw CL_Exception("Sorry, this compiled clanSWRender does not support SSE2, but your CPU does support SSE2. (Update clanSWRender to contain SSE2)");
++		throw Exception("Sorry, this compiled clanSWRender does not support SSE2, but your CPU does support SSE2. (Update clanSWRender to contain SSE2)");
+ 	}
+-	throw CL_Exception("Sorry, clanSWRender requires a processor capable of SSE2 instructions. (Update your CPU)");
++	throw Exception("Sorry, clanSWRender requires a processor capable of SSE2 instructions. (Update your CPU)");
+ }
+ 
+-CL_SetupSWRender::~CL_SetupSWRender()
++SetupSWRender::~SetupSWRender()
+ {
+ }
+ 
+-void CL_SetupSWRender::set_current()
++void SetupSWRender::set_current()
+ {
+ }
+ 
+--- ClanLib-3.0.0/Sources/SWRender/X11/Stub/swr_graphic_context.cpp~	2013-09-24 13:53:31.000000000 +0200
++++ ClanLib-3.0.0/Sources/SWRender/X11/Stub/swr_graphic_context.cpp	2013-11-05 21:47:35.776621770 +0100
+@@ -33,57 +33,57 @@
+ // NON-SSE2 stub
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_GraphicContext_SWRender_Impl Class:
++// GraphicContext_SWRender_Impl Class:
+ 
+-class CL_GraphicContext_SWRender_Impl
++class GraphicContext_SWRender_Impl
+ {
+ public:
+-	CL_GraphicContext_SWRender_Impl()
++	GraphicContext_SWRender_Impl()
+ 	{
+ 	}
+ 
+-	~CL_GraphicContext_SWRender_Impl()
++	~GraphicContext_SWRender_Impl()
+ 	{
+ 	}
+ };
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_GraphicContext_SWRender Construction:
++// GraphicContext_SWRender Construction:
+ 
+-CL_GraphicContext_SWRender::CL_GraphicContext_SWRender(CL_GraphicContext &gc) : CL_GraphicContext(gc),
+- impl(new CL_GraphicContext_SWRender_Impl)
++GraphicContext_SWRender::GraphicContext_SWRender(GraphicContext &gc) : GraphicContext(gc),
++ impl(new GraphicContext_SWRender_Impl)
+ {
+ }
+ 
+-CL_GraphicContext_SWRender::~CL_GraphicContext_SWRender()
++GraphicContext_SWRender::~GraphicContext_SWRender()
+ {
+ }
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_GraphicContext_SWRender Attributes:
++// GraphicContext_SWRender Attributes:
+ 
+-void CL_GraphicContext_SWRender::throw_if_null() const
++void GraphicContext_SWRender::throw_if_null() const
+ {
+ 	if (!impl)
+-		throw CL_Exception("CL_GraphicContext_SWRender is null");
++		throw Exception("GraphicContext_SWRender is null");
+ }
+ 
+-CL_PixelPipeline *CL_GraphicContext_SWRender::get_pipeline() const
++PixelPipeline *GraphicContext_SWRender::get_pipeline() const
+ {
+ 	return NULL;
+ }
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_GraphicContext_SWRender Operations:
++// GraphicContext_SWRender Operations:
+ 
+-void CL_GraphicContext_SWRender::draw_pixels_bicubic(int x, int y, int zoom_number, int zoom_denominator, const CL_PixelBuffer &pixels)
++void GraphicContext_SWRender::draw_pixels_bicubic(int x, int y, int zoom_number, int zoom_denominator, const PixelBuffer &pixels)
+ {
+ }
+ 
+-void CL_GraphicContext_SWRender::queue_command(CL_UniquePtr<CL_PixelCommand> &command)
++void GraphicContext_SWRender::queue_command(UniquePtr<PixelCommand> &command)
+ {
+ }
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_GraphicContext_SWRender Implementation:
++// GraphicContext_SWRender Implementation:
+ 
+--- ClanLib-3.0.0/Sources/SWRender/X11/Stub/swr_program_object.cpp~	2013-09-24 13:53:31.000000000 +0200
++++ ClanLib-3.0.0/Sources/SWRender/X11/Stub/swr_program_object.cpp	2013-11-05 21:47:48.349955014 +0100
+@@ -33,41 +33,41 @@
+ // NON-SSE2 stub
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_ProgramObject_SWRender Construction:
++// ProgramObject_SWRender Construction:
+ 
+-CL_ProgramObject_SWRender::CL_ProgramObject_SWRender(CL_SoftwareProgram *program, bool is_sprite_program)
++ProgramObject_SWRender::ProgramObject_SWRender(SoftwareProgram *program, bool is_sprite_program)
+ {
+ }
+ 
+-CL_ProgramObject_SWRender::CL_ProgramObject_SWRender(const CL_ProgramObject &program_object) : CL_ProgramObject(program_object)
++ProgramObject_SWRender::ProgramObject_SWRender(const ProgramObject &program_object) : ProgramObject(program_object)
+ {
+ }
+ 
+-CL_ProgramObject_SWRender::~CL_ProgramObject_SWRender()
++ProgramObject_SWRender::~ProgramObject_SWRender()
+ {
+ }
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_ProgramObject_SWRender Attributes:
++// ProgramObject_SWRender Attributes:
+ 
+-CL_SoftwareProgram *CL_ProgramObject_SWRender::get_program() const
++SoftwareProgram *ProgramObject_SWRender::get_program() const
+ {
+ 	return NULL;
+ }
+ 
+-bool CL_ProgramObject_SWRender::is_sprite_program() const
++bool ProgramObject_SWRender::is_sprite_program() const
+ {
+ 	return false;
+ }
+ 
+-CL_SWRenderProgramObjectProvider *CL_ProgramObject_SWRender::get_provider() const
++SWRenderProgramObjectProvider *ProgramObject_SWRender::get_provider() const
+ {
+ 	return NULL;
+ }
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_ProgramObject_SWRender Operations:
++// ProgramObject_SWRender Operations:
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_ProgramObject_SWRender Implementation:
++// ProgramObject_SWRender Implementation:
+ 
+--- ClanLib-3.0.0/Sources/SWRender/X11/Stub/swr_target.cpp~	2013-09-24 13:53:31.000000000 +0200
++++ ClanLib-3.0.0/Sources/SWRender/X11/Stub/swr_target.cpp	2013-11-05 21:47:58.379954940 +0100
+@@ -32,21 +32,21 @@
+ // NON-SSE2 stub
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_SWRenderTarget Construction:
++// SWRenderTarget Construction:
+ 
+-CL_SWRenderTarget::CL_SWRenderTarget()
++SWRenderTarget::SWRenderTarget()
+ {
+ }
+ 
+-CL_SWRenderTarget::~CL_SWRenderTarget()
++SWRenderTarget::~SWRenderTarget()
+ {
+ }
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_SWRenderTarget Attributes:
++// SWRenderTarget Attributes:
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_SWRenderTarget Operations:
++// SWRenderTarget Operations:
+ 
+ /////////////////////////////////////////////////////////////////////////////
+-// CL_SWRenderTarget Implementation:
++// SWRenderTarget Implementation:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ClanLib.git/commitdiff/9fe0dc219c2ecbd713513f81b5ad5bc664e6cf00



More information about the pld-cvs-commit mailing list