summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker
AgeCommit message (Collapse)Author
2010-04-06mesa: Add OES_EGL_image to extension list.Chia-I Wu
2010-04-05st/mesa: reformattingBrian Paul
2010-04-05st/mesa: put fragment wpos code into separate functionBrian Paul
2010-04-05st/mesa: trivially enable GL_EXT_gpu_program_parametersMarek Olšák
2010-04-04st/mesa: call pipe_context::draw_arrays/elements_instanced()Brian Paul
2010-04-04st/mesa: Implement GL_OES_EGL_image driver hooks.Chia-I Wu
Use st_manager::get_egl_image to look up GLeglImageOES and implement EGLImageTargetTexture2D and EGLImageTargetRenderbufferStorage.
2010-03-31Merge branch 'gallium-new-formats'Roland Scheidegger
Conflicts: src/gallium/auxiliary/util/u_format.csv src/gallium/auxiliary/util/u_format_access.py src/gallium/auxiliary/util/u_format_pack.py
2010-03-31st/mesa: use BITFIELD64_BIT to access shader OutputsWritten in more placesBen Skeggs
2010-03-30Merge branch 'master' into gallium-new-formatsRoland Scheidegger
Conflicts: src/gallium/auxiliary/util/u_format.csv
2010-03-30gallium: adapt all code to the renamed depth/stencil formatsRoland Scheidegger
2010-03-29mesa/st: util_format_is_compressed() -> util_format_is_s3tc().José Fonseca
2010-03-24st/mesa: fix typo in prev commitBrian Paul
2010-03-24st/mesa: fix sampler_view destruction bug when texture is sharedBrian Paul
Since texture's can be shared by many contexts, the texture's sampler view's context pointer might be invalid by time we delete the texture. Prevent crashes/etc by setting the sampler view's context to be the calling context before deleting it. This should be safe as long as all contexts which share the texture are using the same gallium driver. That's a reasonable assumption since pipe_texture objects aren't compatible between different drivers anyway.
2010-03-24st/mesa: code clean-ups, formatting fixes, comments, etcBrian Paul
2010-03-24st/mesa: rename st_clear() to st_Clear()Brian Paul
To be consistent with other Mesa driver functions.
2010-03-24st/mesa: return GL_TRUE/GL_FALSE if return type is GLbooleanBrian Paul
Just to be consistent.
2010-03-23st/mesa: make st_manager.c set have[Stencil|Depth]Buffer only if bits > 0Luca Barbieri
Fixes a segfault when clearing a non-existent stencil buffer.
2010-03-22st/mesa: rename st_framebuffer() to st_ws_framebuffer()Brian Paul
Be clear that this function is not just a cast wrapper.
2010-03-22st/mesa: Remove unnecessary headers.Vinson Lee
2010-03-22Merge branch '7.8'Brian Paul
Conflicts: src/gallium/drivers/cell/ppu/cell_screen.c src/mesa/state_tracker/st_cb_drawpixels.c
2010-03-18st/mesa: s/unpack/pack/ to be more consistentBrian Paul
2010-03-18st/mesa: Set the pipe context of the texture object.Chia-I Wu
The field was added in b8030c6561e019e079b5be2fe64ec804df4bfa03. This fixes a NULL dereference in xdemos/texture_from_pixmap.
2010-03-17st/mesa: plug in default for pipe_context::surface_copy() if neededBrian Paul
This lets us avoid conditionals and duplicated code in several places.
2010-03-17Merge branch '7.8'Brian Paul
Conflicts: src/mesa/state_tracker/st_cb_drawpixels.c
2010-03-17st/mesa: fix glCopyPixels bugs/crashes when src region need clippingBrian Paul
Use the _mesa_clip_readpixels() function to clip the src region against the buffer's bounds. Neatly, the resulting pixel unpack object's SkipPixels/SkipRows fields can be used to determine the position of the region in the destination texture. Fixes crash in progs/samples/copy.c and probably other cases.
2010-03-17st/mesa: Fix build breakage.Corbin Simpson
Nearly certain this is what was intended; it compiles, but I'm not sure this path is ever hit in my tests.
2010-03-17Merge branch '7.8' into masterPauli Nieminen
Conflicts: Makefile src/mesa/main/version.h
2010-03-16st/mesa: Invalidate sampler view when texture object changes.Michal Krol
2010-03-16gallium: change remaining util functions to use cso sampler viewsRoland Scheidegger
changes arguments of util_blit_pixels_tex and util_gen_mipmap to struct pipe_sampler_view * instead of struct pipe_texture *.
2010-03-16Merge commit 'origin/master' into gallium-sampler-viewKeith Whitwell
This branch already seems to have the nv50_tex.c fix. Conflicts: src/gallium/drivers/nv50/nv50_tex.c
2010-03-16Merge remote branch 'origin/gallium-st-api'Chia-I Wu
2010-03-15st/mesa: Fix a call to st_get_stobj_sampler_view().Michal Krol
2010-03-15st/mesa: Pass in correct sampler view object to blitter.Michal Krol
2010-03-15gallium: util_blit_pixels() takes source sampler view as argument.Michal Krol
2010-03-15st/mesa: Cache FBO texture's sampler view object.Michal Krol
2010-03-15st/mesa: Update the comments in st_manager.c.Chia-I Wu
2010-03-14st/mesa: Fix handling of FBO.Chia-I Wu
FBOs are created by st_new_framebuffer and cannot be casted to st_framebuffer.
2010-03-13Merge commit 'origin/master' into gallium-sampler-viewKeith Whitwell
Conflicts: src/gallium/auxiliary/util/u_tile.c src/gallium/auxiliary/util/u_tile.h src/gallium/drivers/identity/id_context.c src/gallium/drivers/llvmpipe/lp_setup.c src/gallium/drivers/llvmpipe/lp_setup.h src/gallium/drivers/softpipe/sp_tex_tile_cache.c src/gallium/include/pipe/p_context.h src/mesa/state_tracker/st_cb_bitmap.c src/mesa/state_tracker/st_cb_drawpixels.c
2010-03-13st/mesa: Validate the state in st_readpixels.Chia-I Wu
The front renderbuffer of a framebuffer is usually added as needed when glReadBuffer(GL_FRONT) is called. When the call is followed by glReadPixels, we should validate the state before reading from the renderbuffer.
2010-03-13mesa: Fix memory leak in decompress-with-blit.Keith Whitwell
(cherry picked from commit f05a4ee6f2840590c90da4be2fe5c6295410a5af)
2010-03-13st/mesa: Set revalidate in st_framebuffer_update_attachments.Chia-I Wu
There are two conditions that a validation is required. One is when the the framebuffer becomes invalid. The other is when we request for textures that we did not request before.
2010-03-12Revert "st/mesa: Always recalculate invalid index bounds."Corbin Simpson
This reverts commit 50876ddaaff72a324ac45e255985e0f84e108594. Per ML discussion.
2010-03-12Merge branch '7.8'Michel Dänzer
2010-03-12st/mesa: Associate a sampler view with an st texture object.Michal Krol
Lazily create a sampler view when the texture is being bound for the first time.
2010-03-12gallium: fix BGRA vertex color swizzlesMarek Olšák
The mapping for vertex_array_bgra: (gl -> st -> translate) GL_RGBA -> PIPE_FORMAT_R8G8B8A8 (RGBA) -> no swizzle (XYZW) GL_BGRA -> PIPE_FORMAT_A8R8G8B8 (ARGB) -> ZYXW (BGRA again??) Iẗ́'s pretty clear that PIPE_FORMAT_A8R8G8B8 here is wrong. This commit fixes the pipe format and removes obvious workarounds in util/translate. Tested with: softpipe, llvmpipe, r300g. Signed-off-by: José Fonseca <jfonseca@vmware.com>
2010-03-12st/mesa: Always recalculate invalid index bounds.Corbin Simpson
These should always be sanitized before heading towards the pipe driver, and if the calling function explicitly marked them as invalid, we need to regenerate them. Allows r300g to properly pass a bit more of Wine's d3d9 testing without dropping stuff on the floor.
2010-03-12st/mesa: Update debug infos.Corbin Simpson
Still commented out, of course.
2010-03-12Merge commit 'origin/gallium-context-transfers-2'Keith Whitwell
2010-03-12st/mesa: Check the format before adding depth/stencil buffers.Chia-I Wu
The format might have depth bits, stencil bits, or both. Add the renderbuffers as needed.
2010-03-12st/mesa: Implement st_api.h.Chia-I Wu
There is currently no user of this new interface. As the inteface can coexist with st_public.h, everthing should work as before. ST_TEXTURE_2D is both defined by st_public.h and st_api.h. Reorder the headers in st/dri to avoid conflicts.