summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
Commit message (Collapse)AuthorAgeFilesLines
* gallium: add point_quad_rasterization bit to rasterizer stateRoland Scheidegger2010-02-041-0/+1
| | | | | This determines if points should be rasterized according to GL point rules or as normal quads (GL point sprites / d3d points / d3d point sprites).
* gallium: clean up point sprite rasterizer stateRoland Scheidegger2010-02-031-1/+1
| | | | | | | | | | Don't need sprite coord origin per coord. Also, don't need separate sprite enable bit - if all coords have it diabled, then there are no point sprites (technically, there's a distinction in pre-GL3, but it only differs in having more leniency in clamping to max size, something the state tracker would need to handle and the hardware won't bother anyway). Also, use packed field for the per-coord enables. All in all, should save 3 dwords in rasterizer state (from 10 down to 7).
* gallium: remove point_size_min and point_size_max from rasterizer stateRoland Scheidegger2010-01-124-7/+5
| | | | | | | The state tracker is responsible for clamping to any graphics API enforced size min/max limits for both the static point_size setting as well as per vertex point size (in the vertex shader). Note that mesa state tracker didn't actually use these values.
* Merge branch 'mesa_7_7_branch'Brian Paul2010-01-081-1/+1
|\ | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i965/brw_wm_emit.c
| * svga: Silence uninitialized variable warning.Vinson Lee2010-01-061-1/+1
| |
* | svga: Fix fs key size computation and key comparison.Michal Krol2010-01-072-5/+9
| | | | | | | | | | This also allows us to have texture_target back as a bitfield and save us a few bytes.
* | svga: make texture_target a ubyte, not a bitfieldBrian Paul2010-01-061-1/+1
| | | | | | | | | | gcc won't let us take the address of a bitfield in the svga_fs_key_size() function.
* | Make sure we use only signed/unsigned ints with bitfields.Michal Krol2010-01-061-14/+12
| | | | | | | | Seems to be the only way to stay fully portable.
* | Merge remote branch 'origin/mesa_7_7_branch'José Fonseca2010-01-065-18/+24
|\| | | | | | | | | | | | | Conflicts: configs/default src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c src/mesa/main/version.h
| * svga: Remove stale references to delete shader results.José Fonseca2010-01-052-0/+14
| | | | | | | | | | To ensure that a new result that happens to have the same address of the old one will be detected as a change.
| * svga: Rebind shaders when tokens change.José Fonseca2010-01-053-18/+10
| | | | | | | | | | | | | | | | | | | | Even shader ID doesn't change. Otherwise the token change is not effective. This reverts regression from commit cdb445f3a9285e2d8f042a07021ade78b94e0156. Regression could be seen in Quake3's loading screen -- the upper right corner of the screen would be black.
* | gallium: remove PIPE_TEX_FILTER_ANISOLuca Barbieri2010-01-061-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes PIPE_TEX_FILTER_ANISO. Anisotropic filtering is enabled if and only if max_anisotropy > 1.0. Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be considered equivalent, and meaning to turn off anisotropic filtering. This approach has the small drawback of eliminating the possibility of enabling anisotropic filter on either minification or magnification separately, which Radeon hardware seems to support, is currently support by Gallium but not exposed to OpenGL. If this is actually useful it could be handled by splitting max_anisotropy in two values and adding an appropriate OpenGL extension. NOTE: some fiddling & reformatting by keithw to get this patch to apply. Hopefully nothing broken in the process.
* | Merge commit 'origin/gallium-draw-retval'Keith Whitwell2010-01-051-15/+13
|\ \ | | | | | | | | | | | | Conflicts: src/gallium/drivers/identity/id_context.c
| * | gallium: remove return value from draw callsKeith Whitwell2009-12-211-15/+13
| | |
* | | Remove TGSI_OPCODE_SHR, map existing usage to TGSI_OPCODE_ISHR.Michal Krol2010-01-051-1/+1
| | | | | | | | | | | | This is to differentiate it from its unsigned version, TGSI_OPCODE_USHR.
* | | Merge branch 'mesa_7_7_branch'Brian Paul2010-01-048-39/+94
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | Conflicts: docs/relnotes.html src/gallium/drivers/llvmpipe/lp_tex_sample_c.c src/gallium/drivers/r300/r300_cs.h src/mesa/drivers/dri/i965/brw_wm_surface_state.c src/mesa/main/enums.c
| * | svga: Fix debug build crash when rendering to depth/stencil renderbuffer only.Michel Dänzer2010-01-041-1/+2
| | |
| * | svga: Use a shader id as low as possible.José Fonseca2010-01-037-24/+78
| | |
| * | svga: Rename error labels.José Fonseca2010-01-031-14/+14
| | | | | | | | | | | | Make it easier to insert/remove error branches.
* | | svga: Allow to dump an individual command.José Fonseca2009-12-263-340/+363
| | |
* | | gs: fix drivers so they work with geometry shadersZack Rusin2009-12-251-2/+2
| | |
* | | gallium: add geometry shader support to galliumZack Rusin2009-12-251-1/+1
| | |
* | | Merge branch 'gallium-edgeflags'Roland Scheidegger2009-12-224-28/+7
|\ \ \ | |_|/ |/| | | | | | | | Conflicts: src/mesa/state_tracker/st_draw.c
| * | gallium: fix up drivers for edgeflag changesRoland Scheidegger2009-12-194-28/+7
| | | | | | | | | | | | | | | several drivers which chose to ignore edgeflags might require some more work, while edgeflags never worked there they might now crash.
* | | svga: fix typoRoland Scheidegger2009-12-211-1/+1
| | |
* | | Move the remaining format pf_get_* functions to u_format.h.Michal Krol2009-12-172-8/+8
| | | | | | | | | | | | | | | Previously they depended on format blocks, but after removing those they started depending on format encoding.
* | | Merge branch 'master' into pipe-format-simplifyMichal Krol2009-12-1712-737/+1086
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * \ \ Merge branch 'mesa_7_7_branch'Brian Paul2009-12-114-19/+39
| |\ \ \ | | |/ / | |/| / | | |/ | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_xv.c src/mesa/drivers/dri/intel/intel_span.c
| | * svga: Add a missing dependency from the prescale state.José Fonseca2009-12-111-1/+2
| | | | | | | | | | | | | | | | | | Thanks for Keith to finding this. Fixes Jedi Knight 2 menus.
| | * svga: Always pass SVGA3D_SURFACE_HINT_DYNAMIC.José Fonseca2009-12-111-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | Since we're reusing buffers we're effectively transforming all of them into dynamic buffers. It would be nice to not cache long lived static buffers. But there is no way to detect the long lived from short lived ones yet. A good heuristic would be buffer size.
| | * svga: Keep tight control of texture handle ownership.José Fonseca2009-12-112-17/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The texture owns the surface handle. All derivatives need to keep a reference to texture. This fixes several assertions failures starting up Jedi Knight 2. Should cause no change for DRM surface sharing -- reference count still done as before there.
| | * svga: Fix mixed signed comparisons.José Fonseca2009-12-111-1/+1
| | |
| * | Merge branch 'gallium-strict-aliasing'Roland Scheidegger2009-12-084-7/+10
| |\ \
| | * | gallium: fix more potential strict aliasing issuesRoland Scheidegger2009-12-081-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In particular, gcc man page warns that union a_union { int i; double d; }; int f() { double d = 3.0; return ((union a_union *) &d)->i; } "might" not be ok (why not?), even though it doesn't seem to generate any warnings. Hence don't use this and do the extra step to actually use assignment to get the values in/out of the union. This changes parts of 3456f9149b3009fcfce80054759d05883d3c4ee5.
| | * | gallium/util: fix util_color_[un]pack[-ub] to be strict aliasing safeRoland Scheidegger2009-12-072-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | use pointer to union instead of void pointer. gcc complained a lot, depending what the pointer originally actually was. Looks like it's in fact maybe legal to cast for instance uint pointers to union pointers as long as union contains a uint type, hence use this with some callers, other just use union util_color in the first place.
| | * | svga: fix another pipe_reference strict aliasing violationRoland Scheidegger2009-12-041-1/+2
| | | |
| | * | gallium: fix reference counting functions to be strict-aliasing compliantRoland Scheidegger2009-12-031-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Historically, parts of mesa code are not strict-aliasing safe, hence -fno-strict-aliasing is needed to compile (this got forgotten for scons builds for gallium, which indeed not only caused compiler warnings but also unexplicable crashes in non-debug builds). However, we should try to eliminate code not complying with strict-aliasing code at least for gallium. Hence change pipe_reference functions to make them strict-aliasing compliant. This adds a bit more complexity (especially for derived classes) but is the right thing to do, and it does in fact fix a segfault.
| * | | svga: Dump SVGA_3D_CMD_BLIT_SURFACE_TO_SCREEN commands.José Fonseca2009-12-052-4/+43
| | | |
| * | | svga: Use _debug_printf, so that output may be dumped in release builds too.José Fonseca2009-12-053-687/+687
| | | | | | | | | | | | | | | | The dump calls should be wrapped in #ifdef DEBUG .. #endif.
| * | | Merge branch 'gallium-noblocks'Roland Scheidegger2009-12-042-21/+18
| |\ \ \ | | | | | | | | | | | | | | | | | | | | Conflicts: src/gallium/state_trackers/xorg/xorg_exa.c
| | * | | gallium: adapt drivers to interface cleanupsRoland Scheidegger2009-12-022-21/+18
| | | | |
| * | | | Merge branch 'mesa_7_7_branch'Jakob Bornecrantz2009-12-022-0/+290
| |\ \ \ \ | | |_|/ / | |/| | / | | | |/ | | |/|
| | * | svga: Add header files for overlay supportJakob Bornecrantz2009-12-012-0/+290
| | | |
* | | | Move pf_get_bits/size() to u_format auxiliary module.Michal Krol2009-12-031-1/+2
| | | |
* | | | Move pf_is_compressed() to u_format auxiliary module.Michal Krol2009-12-031-2/+3
|/ / /
* | | Merge commit 'origin/tgsi-simplify-ext'Keith Whitwell2009-12-014-129/+129
|\ \ \ | | | | | | | | | | | | | | | | Conflicts: src/gallium/drivers/r300/r300_vs.c
| * | | svga: Update text shader header.Michal Krol2009-11-271-1/+1
| | | |
| * | | tgsi: rename fields of tgsi_full_src_register to reduce verbosityKeith Whitwell2009-11-241-34/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | SrcRegister -> Register SrcRegisterInd -> Indirect SrcRegisterDim -> Dimension SrcRegisterDimInd -> DimIndirect
| * | | tgsi: rename fields of tgsi_full_dst_register to reduce verbosityKeith Whitwell2009-11-241-6/+6
| | | | | | | | | | | | | | | | | | | | DstRegister -> Register DstRegisterInd -> Indirect
| * | | tgsi: rename fields of tgsi_full_declaration to reduce verbosityKeith Whitwell2009-11-242-4/+4
| | | | | | | | | | | | | | | | DeclarationRange -> Range