r300: OQ rework
authorDave Airlie <airlied@redhat.com>
Sun, 16 Aug 2009 08:42:24 +0000 (18:42 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 18 Aug 2009 10:10:50 +0000 (20:10 +1000)
commit9ad76e9479c9c3cb8b2947d5144de33bb31197b8
tree360207b69b08fd5281c0353feb622c7ae1aeeecf
parent0e705c0dd397fe3c607551f988614178dacb9fa4
r300: OQ rework

Move to common code base so radeon/r200 can add support for this.
Make OQ start a state emitted like all normal state, and make no-tcl
flushing work in proper places.

Really need a generic post emit space reservation mechanism like max_state
so we can reserve some space for the emit

this code passes demos/arbocclude, piglit occlusion query and
glean occlusion query with TCL and NO-TCL on my rv530.
17 files changed:
src/mesa/drivers/dri/r300/Makefile
src/mesa/drivers/dri/r300/r300_cmdbuf.c
src/mesa/drivers/dri/r300/r300_context.c
src/mesa/drivers/dri/r300/r300_context.h
src/mesa/drivers/dri/r300/r300_draw.c
src/mesa/drivers/dri/r300/r300_ioctl.c
src/mesa/drivers/dri/r300/r300_queryobj.c [deleted file]
src/mesa/drivers/dri/r300/r300_queryobj.h [deleted file]
src/mesa/drivers/dri/r300/r300_render.c
src/mesa/drivers/dri/r300/r300_state.c
src/mesa/drivers/dri/r300/radeon_queryobj.c [new symlink]
src/mesa/drivers/dri/r300/radeon_queryobj.h [new symlink]
src/mesa/drivers/dri/radeon/radeon_common.c
src/mesa/drivers/dri/radeon/radeon_common_context.c
src/mesa/drivers/dri/radeon/radeon_common_context.h
src/mesa/drivers/dri/radeon/radeon_queryobj.c [new file with mode: 0644]
src/mesa/drivers/dri/radeon/radeon_queryobj.h [new file with mode: 0644]