Bug 14658

Summary: [i915 Occlusion Query] occlusion_query enabled but not actually working
Product: Mesa Reporter: Shuang He <shuang.he>
Component: Drivers/DRI/i915Assignee: Default DRI bug account <dri-devel>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: medium CC: dri-devel, krh
Version: unspecified   
Hardware: Other   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: test case

Description Shuang He 2008-02-25 00:14:30 UTC
System Environment:
--------------------------

--Platform: i915

--Architecture(32-bit,64-bit,compatiblity): all

--2D driver:
commit 4a42b01f5ee5a673716d6959dfe0e693b037eb48 

--3D driver:
commit d7cf6a8a697a2fb4da171a36968f65aa0f108b27 

--Xserver:
commit 06c968acbf6771d5fed4b12ebd400fea791ea498 

--Drm
commit d6098db1409e8ee45052920d3acdd3b6f2cb80aa

--Kernel:
2.6.23.1


Bug detailed description:
-------------------------
This issue make glean test case occluQry failed on i915.
OpenGL GL_ARB_occlusion_query seems enabled by following commit, but it's actually not working:

commit 1c718c0d78cf4eae9e02b03a0abbec384db948a6
Author: Alan Hourihane <alanh@tungstengraphics.com>
Date:   Fri Feb 22 00:18:54 2008 +0000

    Use drm_i915_sarea instead of drmI830Sarea and remove i830_common.h




Reproduce steps:
----------------
1. start X
2. compile and run attached test case


Current result:
----------------
OpenGL GL_ARB_occlusion_query seems enabled by commit 
but it's actually not working


Expected result:
----------------
GL_ARB_occlusion_query should work when it's enabled
Comment 1 Shuang He 2008-02-25 00:15:26 UTC
Created attachment 14550 [details]
test case
Comment 2 Kristian Høgsberg 2008-02-25 09:04:48 UTC
Oops, I messed up the advertised extensions when I merged i915/intel_context.c and i965/intel_context.c.  Commit 45a800a2e7eb5d8d87820ef32d60ae912729cbb0 should fix it.  Thanks!
Comment 3 Shuang He 2008-02-25 17:51:50 UTC
verified, thanks

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.