Brian Paul
6734bab3b2
Checkpoint FBO work:
The progs/tests/fbotest1.c demo works (yeah!), with some caveats:
- Only glClear is done in hardware, actually rendering is sw fallback now.
- Initial expose/draw is broken, works on subsequent draws.
Lots of changes in fallback/span code for FB objects.
Almost full rewrite of intelClearWithBlit() for renderbuffers.
Total rewrite of intelDrawBuffer() function.
Add FBO support to intelClearWithTris() but is currently broken.
Temporary hack in MakeCurrent():
- since we can't create the screen/static renderbuffer regions in
intelCreateBuffer() like we should (no current context with which to lock),
init the renderbuffer's regions in MakeCurrent by copying from
intel->front/back/depth_region.
Still using old DRI front/back/depth mappings for sw rendering to windows.
When those mappings go away, we'll use the new renderbuffer region mappings.
vor 20 Jahren
Brian Paul
0a5fea5f96
Don't call Driver->Bitmap() if no image to render
vor 20 Jahren
Brian Paul
9b2762d7b9
Call _mesa_resize_framebuffer() in intelWindowMoved() to update Mesa's
notion of window size.
Remove unnecessary ctx->Driver.DepthRange() call from intelWindowMoved().
vor 20 Jahren
Brian Paul
571bf7a71b
Change loops from firstLevel to lastLevel to be inclusive of lastLevel
(i.e. change < to <=). Otherwise, 0th image of non-mipmapped textures
wasn't getting mapped and software rendering died.
vor 20 Jahren
Brian Paul
4ab3b9aa76
Implement glGetTexImage.
In intel_tex_map_images(), convert strides from bytes to texels for Mesa.
Store the 3D ImageStride now added to core Mesa.
vor 20 Jahren
Brian Paul
88c018ee47
remove some const qualifiers since we may need to modify fields for mapping
vor 20 Jahren
Brian Paul
cead52ef68
added ImageStride field to gl_texture_image
vor 20 Jahren
Thomas Hellström
9cf0ed6059
Verbose error reporting.
Run indent on intel_bufmgr.c
vor 20 Jahren
Thomas Hellström
2c1c8dccf7
Clean up flag handling.
vor 20 Jahren
Brian Paul
b87f9f6056
thread safety fixes from trunk
vor 20 Jahren
Brian Paul
427bf0171d
update assertion
vor 20 Jahren
Brian Paul
98c5445c75
make soft_renderbuffer_storage() into public _mesa_soft_renderbuffer_storage()
vor 20 Jahren
Brian Paul
15ffb3bbab
checkpoint
vor 20 Jahren
Brian Paul
97b570b999
just check-point some FBO code
vor 20 Jahren
Brian Paul
e8e6374a16
New code for setting cliprects when rendering to a FBO.
vor 20 Jahren
Brian Paul
d9f31f16c0
sync with trunk
vor 20 Jahren
Brian Paul
1173198f51
added GL_EXT_framebuffer_blit from trunk
vor 20 Jahren
Brian Paul
01a56d23e6
fix more assertions that wrap essential code (-DNDEBUG case)
vor 20 Jahren
Brian Paul
bf050799ac
new intel_renderbuffer struct
vor 20 Jahren
Brian Paul
3697eca493
new intel_map_unmap_buffers() routine which will eventually be used to map or unmap all renderbuffers which we may need during software rendering
vor 20 Jahren
Brian Paul
de2b3506ea
allow format = GL_RGB5, GL_RGBA8
vor 20 Jahren
Brian Paul
bfbe2eb6e9
new intel_set_span_functions(), bridge to new code
vor 20 Jahren
Brian Paul
8bd395f601
comments
vor 20 Jahren
Brian Paul
735925d15b
include intel_fbo
vor 20 Jahren
Brian Paul
448a3456a9
Added BindFramebuffer() driver hook.
Rename base_internal_format() to _mesa_base_fbo_format() and make public.
vor 20 Jahren
Brian Paul
e176b11b74
init Red/Green/EtcBits = 0 in soft_renderbuffer_storage()
vor 20 Jahren
Brian Paul
cdc8771893
added some assertions as prep to removing use of dPriv fields. new comments.
vor 20 Jahren
Brian Paul
789399d3f4
Replace code like this:
assert(!drmFoobar());
with:
int k = drmFoobar();
assert(!k);
so that the drm calls don't disappear if we compile with NDEBUG!
vor 20 Jahren
Brian Paul
dfa8624e83
just comments, doxygen
vor 20 Jahren
Brian Paul
36b64bbd4f
initial skeletons for GL_EXT_framebuffer_object
vor 20 Jahren
Keith Whitwell
651985f813
Clear optimizations.
- Correct comparison of stencil writemask with 0xff.
- Do depth with triangles if we are already doing stencil that way.
vor 20 Jahren
Keith Whitwell
9f2b49a7b3
Turn the render stage back on.
vor 20 Jahren
Keith Whitwell
05c6361b0b
reinstate old unlock + sched_yeild behaviour when nr_cliprects == 0
vor 20 Jahren
Keith Whitwell
9621817253
drmOpen/Close hacks to coalesce multiple drm opens
vor 20 Jahren
Keith Whitwell
7e2e4a6b1a
Use drmCloseOnce()
vor 20 Jahren
Keith Whitwell
656c71ca3f
Check to see if a bufmgr has already been created for the current drm
fd. If so reuse it.
Also, add _glthread_Mutex guards around (some of the) potential
thread-unsafe code.
vor 20 Jahren
Thomas Hellström
6ce7055dcc
Remove wait for fence at the end of intelFlush.
vor 20 Jahren
Keith Whitwell
c848a65b5e
Use braces around size parameter in BEGIN_BATCH. Hopefully fixes
batch overrun problems.
vor 20 Jahren
Thomas Hellström
1ff99fcd50
New libdrm flag numbers.
vor 20 Jahren
Keith Whitwell
67342052d2
Add copypix.c demo.
Add PBO version of drawpix.c demo.
vor 20 Jahren
Thomas Hellström
ccf52b6784
Move over to libdrm.
At least one lockup remaining with multiple clients when at least one client
is using textures.
vor 20 Jahren
Thomas Hellström
78aa58c914
Add bufmgr_old that keeps the old pre-ttm functionality.
Modify bufmgr_fake.c for new drm interface. Full rework for bufmgr.c pending.
vor 20 Jahren
Thomas Hellström
4291f24abd
Add a define NO_TTM to disable ttm usage altogether for comparison.
Reinstate MI_FLUSH at end of batchbuffers.
vor 20 Jahren
Keith Whitwell
f4211722f1
Get texture drawpixels working
vor 20 Jahren
Keith Whitwell
71380a1325
Get basic texturing and stencil working
vor 20 Jahren
Keith Whitwell
33e55c6a7d
i830 driver first triangles (with a faked out bufmgr)
vor 20 Jahren
Keith Whitwell
cd32164cc6
Port the i830 driver to the texture manager. Compiles but not tested.
Turn back on some fallback cases.
Turn back on the unclipped rastersetup-to-dma render path.
vor 20 Jahren
Keith Whitwell
7c1348ac8f
Remove the flags argument for intel_meta_draw_quad(). 3D primitives
must always be emitted with cliprects else the drawing origin may not
be emitted either.
vor 20 Jahren
Thomas Hellström
2560061cfe
Silence printout and nicer wait for IRQ when out of batchbuffer mem.
vor 20 Jahren
Keith Whitwell
0c047b8847
Texture copypixels, fixes to blit path also.
Need to add logic to avoid using texture engine where source, dest overlap.
vor 20 Jahren