Brian Paul
315396ac6c
Created new intel_buffers.h file with appropriate prototypes.
Moved body of intelDrawBuffer() into new intel_draw_buffer() which will do
additional things in future.
hace 20 años
Brian Paul
a7252f42ae
use correct renderbuffer regions in intelClearWithTris()
hace 20 años
Brian Paul
bffc66109e
fix up some loose ends for render to texture, clean-ups
hace 20 años
Brian Paul
0089c7f4ee
Checkpoint: render-to-texture starting to work. Had to turn off stencil
in fbotexture.c. Teapot is drawn upside down, not centered...
hace 20 años
Brian Paul
54f435340b
debug code to enable/disable depth/stencil operations
hace 20 años
Brian Paul
66d887d605
Checkpoint render-to-texture. Doesn't function, but doesn't crash either.
hace 20 años
Brian Paul
c6dc5cc8ab
update get_teximage_source() to use renderbuffer regions
hace 20 años
Brian Paul
e0412bb726
updates to sync with trunk merge
hace 20 años
Brian Paul
cc5cbd1bca
Merge from CVS trunk (get render-to-texture updates).
hace 20 años
Keith Whitwell
93fbfa5781
Use an rgba image so that hw pbos work.
hace 20 años
Keith Whitwell
30709caad6
Restore animation
hace 20 años
Keith Whitwell
a647198f65
Remove old DRM_SOURCE_PATH defn
hace 20 años
Keith Whitwell
7ad6ea6ff2
Call _mesa_update_state() before checking FragmentProgram->_Enabled
hace 20 años
Brian Paul
ceee2c45cd
Fixed bug in intelClearWithBlit(). If clearing multiple cliprects, the
buffer mask was clobbered after the first rect.
Rename 'flags' to 'mask' to be consistent w/ other clearing code.
hace 20 años
Brian Paul
26dc161fde
XXX comments
hace 20 años
Brian Paul
b176ef05f2
In intelCopyBuffer(), use renderbuffer regions instead of context's region
pointers. Added const qualifiers. Added comments.
hace 20 años
Brian Paul
6d6e7a08c7
Fix up intelSwapBuffers:
- get gl_framebuffer pointer from dPriv.
- flush current context if bound to window we're swapping. Previous code
could try to flush a non-current context.
hace 20 años
Brian Paul
eb75ec2349
merge from trunk (additional renderbuffer error checks, debug code)
hace 20 años
Brian Paul
2a8bd4e329
Replace intel_clip_to_framebuffer(), intel_clip_to_drawable(), and
intel_clip_to_region() with new _mesa_clip_to_region().
hace 20 años
Brian Paul
c247268499
added _mesa_clip_to_region()
hace 20 años
Brian Paul
b2cb8920c2
FBO test - teapot
hace 20 años
Brian Paul
af4d93f256
Fix some issues with depth renderbuffers. 3D rendering into FBOs seems OK now.
Misc clean-ups in other places.
hace 20 años
Brian Paul
c8dd839acb
remove debug code
hace 20 años
Brian Paul
e43c3c38fb
simplify intelClearWithTris() for renderbuffers
hace 20 años
Brian Paul
9194782fdc
Merge i915_set_draw_region() and i915 meta_draw_region() into new i915_state_draw_region().
hace 20 años
Brian Paul
ec36d5b537
undo a debugging hack
hace 20 años
Brian Paul
6e5da1a860
intelClearWithTriangles now handles FBOs.
Had to fix up i915 meta_draw_region() function.
Try to combine some duplicated code in next check-in.
hace 20 años
Brian Paul
21f6e8a2d0
added BUFFER_BITS_COLOR
hace 20 años
Brian Paul
18772c9e88
sync with trunk (GL_READ/DRAW_BUFFER queries)
hace 20 años
Brian Paul
5df4283b53
FBO Checkpoint:
Basic FBO hardware rendering now working (fbotest1.c works at least).
hace 20 años
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.
hace 20 años
Brian Paul
0a5fea5f96
Don't call Driver->Bitmap() if no image to render
hace 20 años
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().
hace 20 años
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.
hace 20 años
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.
hace 20 años
Brian Paul
88c018ee47
remove some const qualifiers since we may need to modify fields for mapping
hace 20 años
Brian Paul
cead52ef68
added ImageStride field to gl_texture_image
hace 20 años
Thomas Hellström
9cf0ed6059
Verbose error reporting.
Run indent on intel_bufmgr.c
hace 20 años
Thomas Hellström
2c1c8dccf7
Clean up flag handling.
hace 20 años
Brian Paul
b87f9f6056
thread safety fixes from trunk
hace 20 años
Brian Paul
427bf0171d
update assertion
hace 20 años
Brian Paul
98c5445c75
make soft_renderbuffer_storage() into public _mesa_soft_renderbuffer_storage()
hace 20 años
Brian Paul
15ffb3bbab
checkpoint
hace 20 años
Brian Paul
97b570b999
just check-point some FBO code
hace 20 años
Brian Paul
e8e6374a16
New code for setting cliprects when rendering to a FBO.
hace 20 años
Brian Paul
d9f31f16c0
sync with trunk
hace 20 años
Brian Paul
1173198f51
added GL_EXT_framebuffer_blit from trunk
hace 20 años
Brian Paul
01a56d23e6
fix more assertions that wrap essential code (-DNDEBUG case)
hace 20 años
Brian Paul
bf050799ac
new intel_renderbuffer struct
hace 20 años
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
hace 20 años