summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/r300/r300_texture.c
AgeCommit message (Collapse)Author
2010-02-24r300: Update for UTIL_FORMAT_LAYOUT_xxx changes.José Fonseca
2010-02-24r300g: fix texture swizzling for the SRGB formatsMarek Olšák
2010-02-22Revert "r300g: rebuild winsys/pipe buffer handling and add buffer map"Dave Airlie
This reverts commit fff5be8e7b4557c221f2425dcafc2e7cbbba76ba. Probably went too soon with this, dileX reported OA not working for him it works here fine, but the optimisations I wanted aren't working properly yet so I'll fix that now. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-22r300g: rebuild winsys/pipe buffer handling and add buffer mapDave Airlie
This creates a cleaner winsys and drop the simple screen stuff. It makes r300g use pb_bufmgr structs and adds usage of the cached bufmgr for vertex/index buffers. It also avoids mapping too often. I'm not 100% sure this is perfect but it won't find its own bugs. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-02-21r300g: precompute framebuffer register valuesMarek Olšák
2010-02-21r300g: make r300_translate_texformat privateMarek Olšák
Unlikely to increase performance from inlining. And partially expose it through r300_is_sampler_format_supported.
2010-02-14r300g: add macrotiling support to texture setupMarek Olšák
2010-02-14r300g: accelerate blitting for all formats by faking the texture formatMarek Olšák
2010-02-14r300g: Use util_format_name().José Fonseca
2010-02-09r300g: Correct colorbuffer measurements.Corbin Simpson
Also clarify changes from pointminmax.
2010-01-24r300g,radeong: set tiling flags in libdrmMarek Olšák
2010-01-18r300g: do not align compressed textures to a tile sizeMarek Olšák
2010-01-17r300g: output texture debug messages if only RADEON_DEBUG=tex is setMarek Olšák
2010-01-12r300g: update the texture initialization so that it respects tilingMarek Olšák
This is still work-in-progress and tiling is not enabled by default.
2010-01-12r300g: Always emit scissors.Corbin Simpson
Save some code, improve FPS, and fix piglit tests. Everybody wins.
2009-12-17Move the remaining format pf_get_* functions to u_format.h.Michal Krol
Previously they depended on format blocks, but after removing those they started depending on format encoding.
2009-12-17Merge branch 'master' into pipe-format-simplifyMichal Krol
Conflicts: src/gallium/auxiliary/draw/draw_pipe_aaline.c src/gallium/auxiliary/draw/draw_pipe_pstipple.c src/gallium/auxiliary/util/u_blit.c src/gallium/auxiliary/util/u_gen_mipmap.c src/gallium/auxiliary/util/u_surface.c src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c src/gallium/drivers/cell/ppu/cell_texture.c src/gallium/drivers/llvmpipe/lp_texture.c src/gallium/drivers/r300/r300_emit.c src/gallium/drivers/r300/r300_texture.c src/gallium/drivers/softpipe/sp_texture.c src/gallium/drivers/softpipe/sp_tile_cache.c src/gallium/drivers/svga/svga_state_vs.c src/gallium/include/pipe/p_format.h src/gallium/state_trackers/dri/dri_drawable.c src/gallium/state_trackers/egl/egl_surface.c src/gallium/state_trackers/python/p_device.i src/gallium/state_trackers/python/st_softpipe_winsys.c src/gallium/state_trackers/vega/api_filters.c src/gallium/state_trackers/vega/image.c src/gallium/state_trackers/vega/mask.c src/gallium/state_trackers/vega/paint.c src/gallium/state_trackers/vega/renderer.c src/gallium/state_trackers/vega/vg_tracker.c src/gallium/state_trackers/xorg/xorg_crtc.c src/gallium/state_trackers/xorg/xorg_dri2.c src/gallium/state_trackers/xorg/xorg_exa.c src/gallium/state_trackers/xorg/xorg_renderer.c src/gallium/state_trackers/xorg/xorg_xv.c src/gallium/state_trackers/xorg/xvmc/surface.c src/gallium/winsys/drm/nouveau/drm/nouveau_drm_api.c src/gallium/winsys/drm/radeon/core/radeon_buffer.c src/gallium/winsys/egl_xlib/sw_winsys.c src/gallium/winsys/g3dvl/xlib/xsp_winsys.c src/gallium/winsys/gdi/gdi_llvmpipe_winsys.c src/gallium/winsys/gdi/gdi_softpipe_winsys.c src/gallium/winsys/xlib/xlib_cell.c src/gallium/winsys/xlib/xlib_llvmpipe.c src/gallium/winsys/xlib/xlib_softpipe.c src/mesa/state_tracker/st_cb_fbo.c src/mesa/state_tracker/st_cb_texture.c src/mesa/state_tracker/st_texture.c
2009-12-03Move pf_get_block() to u_format auxiliary module.Michal Krol
2009-12-02gallium: adapt drivers to interface cleanupsRoland Scheidegger
2009-11-27Merge branch 'width0'Roland Scheidegger
Conflicts: src/gallium/drivers/r300/r300_texture.c src/gallium/state_trackers/xorg/xorg_exa.c src/mesa/state_tracker/st_cb_texture.c
2009-11-26gallium: fix more statetrackers/drivers for not using texture ↵Roland Scheidegger
width/height/depth arrays
2009-11-20r300g: add texture lod clampingMarek Olšák
These now work: piglit/lodclamp piglit/levelclamp
2009-10-31r300g: correct the pitch calculation for smaller mipmapsMarek Olšák
2009-10-31r300g: add precalculating of pixel pitch, add a new NPOT flagMarek Olšák
2009-10-28r300g: Fix XXX.Corbin Simpson
Nothing strange here.
2009-10-26r300g: add cubemap supportMarek Olšák
Also, set a pitch for rectangles only.
2009-10-25r300g: fix redefining mipmaps and fetching from themMarek Olšák
2009-10-25r300g: added support for 3D texturesMarek Olšák
Mipmaps not tested. Also, I am not sure why piglit/texturing/tex3d needs to have color tolerance +-1 to pass. The classic Mesa driver doesn't need that.
2009-10-21r300g: Update comments, asserts, indents in r300_texture.Corbin Simpson
I wish I knew enough about textures to really really REALLY fix that file.
2009-10-21r300g: Cleanup header includes.Corbin Simpson
2009-10-10r300g: add video surface create and destroy functionsCooper Yuan
2009-09-26r300g: add tx depth support in register.Dave Airlie
also enable cube/3d bits in txformat reg
2009-09-26r300g: only pass complete texture state to hw setup functionDave Airlie
No point passing things twice here, also allows more state to be setup properly.
2009-09-26r300g: fix texture pitch to correct value.Dave Airlie
pitch is pixels - 1, not bytes.
2009-09-21r300g: Fix bad formatting parameters in calls to debug_printfNicolai Hähnle
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-09-12r300g: There is no such thing as "texture stride"Nicolai Hähnle
Individual texture images have a stride, but textures as a whole do not. There are still pieces of code which are confused about this, but the core of the confusion is hopefully gone. Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-08-07gallium: Move minify() to u_math.Corbin Simpson
minify() is usually used in mipmap size calculation. Strangely enough, we all defined it as MAX2(1, d >> 1); imagine that. :3
2009-08-04r300g: Slightly saner initialization of some texture / transfer fields.Michel Dänzer
2009-07-26r300g: Fix two trivial texture size issues.Corbin Simpson
Next thing to fix: progs/tests/mipgen.
2009-07-26r300g: Add some debugging, correct little bits of math in texture setup.Corbin Simpson
Simple stuff still works, but not sure about some of the more complex things.
2009-07-13r300g: Use align() instead of inline maths.Corbin Simpson
2009-07-08r300-gallium: Mipmap setup.Corbin Simpson
(cherry picked from commit 88c01a15da5639dd68a6a0133724994cb66f1316)
2009-06-26r300g: Use real texture formats.Corbin Simpson
What bugs me is that the YUV444 format somehow worked properly. :3
2009-05-08r300-gallium: Fix bad cast. Space accounting completely works now.Corbin Simpson
Boy, is my face red. :C
2009-05-08r300-gallium, radeon: A couple cleanups.Corbin Simpson
Trying to track down goddamn bugs. :C
2009-03-26gallium: Remove some little-used fields from struct pipe_surface.Michel Dänzer
2009-03-15r300-gallium: Actually set stride when creating textures.Corbin Simpson
Duh.
2009-03-10r300-gallium: First stab at texture support.Corbin Simpson
2009-03-04gallium: Unify reference counting.Michel Dänzer
The core reference counting code is centralized in p_refcnt.h. This has some consequences related to struct pipe_buffer: * The screen member of struct pipe_buffer must be initialized, or pipe_buffer_reference() will crash trying to destroy a buffer with reference count 0. u_simple_screen takes care of this, but I may have missed some of the drivers not using it. * Except for rare exceptions deep in winsys code, buffers must always be allocated via pipe_buffer_create() or via screen->*buffer_create() rather than via winsys->*buffer_create().
2009-03-03r300-gallium, radeon-gallium: Continue migration to DRI2 state_tracker, part 2.Corbin Simpson
Almost there. glxinfo still works, and AFAICT so does trivial/clear.