I’m having trouble in one old machine with SDL and OpenGL when trying
to setup stencil buffer.
I tested with SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 8) and
SDL_GL_SetAttribute(SDL_GL_STENCIL_SIZE, 1) but after initializing
video when I try to read it using SDL_GL_GetAttribute, in that machine
I get 0.
Testing a sample application using glut stencil buffer works. This
must be a problem with SDL.
In other machines, stencil buffer just works perfectly either with 1 or 8 bits.
Machine information:
VGA IGP SiS650
sisgl.dll 6.14.10.3730
Windows XP
opengl.dll 5.1.2600.5512
SDL 1.2.13
Detailed report:
--------[ Chipset
]-----------------------------------------------------------------------------------------------------
[ North Bridge: SiS 740 ]
North Bridge Properties:
North Bridge SiS 740
Supported FSB Speeds FSB200, FSB266
Supported Memory Types PC100 SDRAM,
PC133 SDRAM, DDR-200 SDRAM, DDR-266 SDRAM
Revision 01
Package Type 537 Pin BGA
In-Order Queue Depth 7
Memory Timings:
CAS Latency (CL) 2.5T
RAS To CAS Delay (tRCD) 3T
RAS Precharge (tRP) 3T
RAS Active Time (tRAS) 6T
Row Cycle Time (tRC) 10T
RAS To RAS Delay (tRRD) 2T
Write Recovery Time (tWR) 2T
Memory Slots:
DRAM Slot #1 512 MB
(PC3200 DDR SDRAM)
Integrated Graphics Controller:
Graphics Controller Type SiS 315
Graphics Controller Status Enabled
Graphics Frame Buffer Size 32 MB
AGP Controller:
AGP Version 2.00
AGP Status Enabled
AGP Device SiS 315 Integrated
AGP Aperture Size 64 MB
Supported AGP Speeds 1x, 2x, 4x
Current AGP Speed 4x
Fast-Write Supported, Disabled
Side Band Addressing Supported, Enabled
Chipset Manufacturer:
Company Name Silicon
Integrated Systems Corporation
Product Information
http://www.sis.com/products/index.htm#chipsets
Driver Download
http://www.sis.com/download
BIOS Upgrades
http://www.esupport.com/biosagent/index.cfm?refererid=40
Driver Update
http://driveragent.com?ref=59
--------[ BIOS ]--------------------------------------------------------------------------------------------------------
BIOS Properties:
BIOS Type AMI
BIOS Version 07.00T
System BIOS Date 08/07/03
Video BIOS Date 12/13/01
BIOS Manufacturer:
Company Name American Megatrends Inc.
Product Information
http://www.ami.com/amibios
BIOS Upgrades
http://www.esupport.com/biosagent/index.cfm?refererid=40
--------[ ACPI ]--------------------------------------------------------------------------------------------------------
[ DSDT: Differentiated System Description Table ]
ACPI Table Properties:
ACPI Signature DSDT
Table Description Differentiated
System Description Table
Memory Address 1DFF00C0h
Table Length 12951 bytes
OEM ID SiS
OEM Table ID 740
OEM Revision 00000100h
Creator ID MSFT
Creator Revision 0100000Dh
[ FACP: Fixed ACPI Description Table ]
ACPI Table Properties:
ACPI Signature FACP
Table Description Fixed ACPI
Description Table
Memory Address 1DFF0030h
Table Length 129 bytes
OEM ID AMIINT
OEM Table ID SiS740XX
OEM Revision 00000011h
Creator ID MSFT
Creator Revision 0100000Bh
SMI Command Port 00000848h
PM Timer 00000808h
[ FACS: Firmware ACPI Control Structure ]
ACPI Table Properties:
ACPI Signature FACS
Table Description Firmware ACPI
Control Structure
Memory Address 1DFF8000h
Table Length 64 bytes
[ RSD PTR: Root System Description Pointer ]
ACPI Table Properties:
ACPI Signature RSD PTR
Table Description Root System
Description Pointer
Memory Address 000FA320h
Table Length 36 bytes
OEM ID AMI
[ RSDT: Root System Description Table ]
ACPI Table Properties:
ACPI Signature RSDT
Table Description Root System
Description Table
Memory Address 1DFF0000h
Table Length 40 bytes
OEM ID AMIINT
OEM Table ID SiS740XX
OEM Revision 00001000h
Creator ID MSFT
Creator Revision 0100000Bh
--------[ Operating System
]--------------------------------------------------------------------------------------------
Operating System Properties:
OS Name Microsoft
Windows XP Professional
OS Code Name Whistler
OS Language English (United States)
OS Kernel Type Uniprocessor
Free (32-bit)
OS Version 5.1.2600 (WinXP Retail)
OS Service Pack Service Pack 3
OS Installation Date 9/23/2009
OS Root C:\WINDOWS
License Information:
Registered Owner Techfront
Registered Organization Techfront
Licensed Processors 2
Product ID 55274-640-5536995-23373
Product Key
MR49R-DRJXX-M6PX2-V96BF-8CKBJ
Product Activation (WPA) Not Required
Current Session:
Computer Name QA-VELHO
User Name Administrator
Logon Domain QA-VELHO
UpTime 68025 sec (0
days, 18 hours, 53 min, 45 sec)
Components Version:
Common Controls 6.00
Internet Explorer 6.0.2900.5512
Internet Explorer Updates SP3
Outlook Express 6.00.2900.5512
(xpsp.080413-2105)
Windows Media Player 6.4.09.1125
Windows Messenger -
MSN Messenger -
Internet Information Services (IIS) -
.NET Framework -
Novell Client -
DirectX 4.09.00.0904
(DirectX 9.0c)
OpenGL 5.1.2600.5512
(xpsp.080413-0845)
ASPI -
Operating System Features:
Debug Version No
DBCS Version No
Domain Controller No
Security Present No
Network Present Yes
Remote Session No
Safe Mode No
Slow Processor No
Terminal Services No
--------[ System Drivers
]----------------------------------------------------------------------------------------------
SiS315 SiS315
sisgrp.sys 6.14.10.3730 Kernel
Driver Running
sisagp SIS AGP Bus Filter
sisagp.sys 5.12.1.2010 Kernel
Driver Running
SiSkp SiSkp
srvkp.sys 6.14.10.3730 Kernel
Driver Running
SISNIC SiS PCI Fast Ethernet Adapter Driver
sisnic.sys 1.16.0.5 Kernel
Driver Running
--------[ DLL Files
]---------------------------------------------------------------------------------------------------
opengl32.dll 5.1.2600.5512 OpenGL Client DLL
sisbase.dll 6.14.10.3730 SiS
Compatible Super VGA SiSBase Dynamic Link Library
sisgl.dll 6.14.10.3730 SiS
Compatible Super VGA OpenGL ICD
sisgrv.dll 6.14.10.3730 SiS
Compatible Super VGA Driver
sisinst.dll 6.14.10.3730 SiS
Compatible Super VGA SiSinst Dynamic Link Library
sisparse.dll 6.14.10.3730 SiS
Compatible Super VGA Script Parser Dynamic Link Library
sispinst.dll 6.14.10.3730 SiS PreInstaller
sispower.dll 6.14.10.3730 Dynamic
link library for setting Power Scheme
--------[ Windows Video
]-----------------------------------------------------------------------------------------------
[ SiS 650_651_M650_M652_740 ]
Video Adapter Properties:
Device Description SiS
650_651_M650_M652_740
Adapter String Mirage
BIOS String 1.05.00
Chip Type SiS Generic Z
DAC Type Internal
Memory Size 32 MB
Installed Drivers:
SiSGRV
Video Adapter Manufacturer:
Company Name Silicon
Integrated Systems Corporation
Product Information
http://www.sis.com/products/index.htm#gpus
Driver Download
http://www.sis.com/download
Driver Update
http://driveragent.com?ref=59
--------[ PCI / AGP Video
]---------------------------------------------------------------------------------------------
SiS 315 Integrated
Video Adapter
SiS 315 Integrated
3D Accelerator
--------[ GPU ]---------------------------------------------------------------------------------------------------------
[ Integrated: SiS 315 Integrated ]
Graphics Processor Properties:
Video Adapter SiS 315 Integrated
GPU Code Name 315IGP
PCI Device 1039-6325 /
1039-6325 (Rev 00)
Bus Type Integrated
Memory Size 32 MB
GPU Clock 134 MHz
Pixel Pipelines 2
TMU Per Pipeline 1
Vertex Shaders Not Supported
Pixel Shaders Not Supported
DirectX Hardware Support DirectX v7.0
Pixel Fillrate 268 MPixel/s
Texel Fillrate 268 MTexel/s
Memory Bus Properties:
Bus Type DDR
Bus Width 64-bit
Real Clock 100 MHz (DDR)
Effective Clock 200 MHz
Bandwidth 1600 MB/s
Graphics Processor Manufacturer:
Company Name Silicon
Integrated Systems Corporation
Product Information
http://www.sis.com/products/index.htm#gpus
Driver Download
http://www.sis.com/download
Driver Update
http://driveragent.com?ref=59
--------[ OpenGL
]------------------------------------------------------------------------------------------------------
OpenGL Properties:
Vendor SiS
Renderer 740 VGA
Version 1.4.0
OpenGL DLL
5.1.2600.5512(xpsp.080413-0845)
ICD Driver sisgl.dll (6.14.10.3730)
Multitexture Texture Units 2
Sub-Pixel Precision 3-bit
Max Viewport Size 2048 x 2048
Max Cube Map Texture Size 2048 x 2048
Max 3D Texture Size 2048 x 2048 x 2048
Max Clipping Planes 6
Max Display-List Nesting Level 64
Max Evaluator Order 30
Max Light Sources 8
Max Pixel Map Table Size 65536
Max Texture LOD Bias 2
OpenGL Compliancy:
OpenGL 1.1 Yes (100%)
OpenGL 1.2 Yes (100%)
OpenGL 1.3 Yes (100%)
OpenGL 1.4 Yes (100%)
OpenGL 1.5 No (33%)
OpenGL 2.0 No (0%)
OpenGL 2.1 No (0%)
OpenGL 3.0 No (0%)
OpenGL 3.1 No (0%)
Max Stack Depth:
Attribute Stack 16
Client Attribute Stack 16
Modelview Matrix Stack 32
Name Stack 128
Projection Matrix Stack 6
Texture Matrix Stack 10
Draw Range Elements:
Max Index Count 2147483647
Max Vertex Count 2147483647
OpenGL Extensions:
GL_ARB_depth_texture Supported
GL_ARB_multisample Supported
GL_ARB_multitexture Supported
GL_ARB_point_parameters Supported
GL_ARB_shadow Supported
GL_ARB_texture_border_clamp Supported
GL_ARB_texture_compression Supported
GL_ARB_texture_cube_map Supported
GL_ARB_texture_env_add Supported
GL_ARB_texture_env_combine Supported
GL_ARB_texture_env_crossbar Supported
GL_ARB_texture_env_dot3 Supported
GL_ARB_texture_mirrored_repeat Supported
GL_ARB_transpose_matrix Supported
GL_ARB_window_pos Supported
GL_EXT_abgr Supported
GL_EXT_bgra Supported
GL_EXT_blend_color Supported
GL_EXT_blend_func_separate Supported
GL_EXT_blend_minmax Supported
GL_EXT_blend_subtract Supported
GL_EXT_compiled_vertex_array Supported
GL_EXT_draw_range_elements Supported
GL_EXT_fog_coord Supported
GL_EXT_multi_draw_arrays Supported
GL_EXT_packed_pixels Supported
GL_EXT_polygon_offset Supported
GL_EXT_rescale_normal Supported
GL_EXT_secondary_color Supported
GL_EXT_separate_specular_color Supported
GL_EXT_shadow_funcs Supported
GL_EXT_stencil_wrap Supported
GL_EXT_swap_control Supported
GL_EXT_texture_edge_clamp Supported
GL_EXT_texture_env_add Supported
GL_EXT_texture_env_combine Supported
GL_EXT_texture_env_dot3 Supported
GL_EXT_texture_lod_bias Supported
GL_EXT_texture_object Supported
GL_EXT_texture3D Supported
GL_EXT_vertex_array Supported
GL_KTX_buffer_region Supported
GL_NV_blend_square Supported
GL_SGIS_generate_mipmap Supported
GL_SGIS_multitexture Supported
GL_SGIS_texture_edge_clamp Supported
GL_SGIS_texture_lod Supported
GL_SGIX_depth_texture Supported
GL_SGIX_shadow Supported
GL_SUN_multi_draw_arrays Supported
GL_WIN_swap_hint Supported
WGL_ARB_extensions_string Supported
WGL_ARB_multisample Supported
WGL_ARB_pbuffer Supported
WGL_ARB_pixel_format Supported
WGL_ARB_render_texture Supported
WGL_EXT_extensions_string Supported
WGL_EXT_pixel_format Supported
WGL_EXT_swap_control Supported
--------[ Debug - Video BIOS
]------------------------------------------------------------------------------------------
C000:0000 U.`.t.1.05.00 1..(.Z.n.-m....IBM COMPATIBLE12/13/2001-12:19:49
C000:0040 ..~.......9.%c....0.Zd.B..E.S.7a.d.7"...7a.d.7"...7"...7"......`
C000:0080 `....................00@@.....3 at ..wwDDwwDD....[[................
C000:00C0 .....k.t...........................................`............
C000:0100 .:l at .;.G.>.Z.[T..6.W.W.W.W.W.W8X.W.W.Y.Y.W.W.>Zmz/a1}...........
C000:0140 .....................)!...\#...e#...7!...7"...7"...7"...7"....Si
C000:0180 S 6325/301 AGP True Color Graphics and Video Accelerator..... By
C000:01C0 tes Video Memory,...BIOS Version 1.05.00 ..Support VESA BIOS Ex
C000:0200 tension Ver 3.0..%..SiS.................Silicon Integrated Syste
C000:0240 ms Corp...................6325................1.05.00...d....f`P
C000:0280 ....nX...Mm......e................... at .....B.....<.......|.<...~
C000:02C0 .....lD........`...........8....S..........-..z..Y7.q5....).....
C000:0300 ....[...P...VnXfa.....&....... ......,.u#...........&.......B...
C000:0340 ...6....6.....c....R......$.......Z...TlP..U./l.Jl..Uu.....!l.<l
C000:0380 ...X..........l.........k........k........1...k........0..k.....
C000:03C0 .......&|...k.....k....&....k. ..k.......#..$..k..F...'...k.1 at .------------------------------------------------------------------------------------------------------------------------
–
Animal Liberation Front
http://www.animal-liberation.com/