summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* glsl: Lower ir_binop_pow to a sequence of EXP2 and LOG2Ian Romanick2010-12-012-2/+4
|
* glsl: Use M_LOG2E constant instead of calling log2Ian Romanick2010-12-011-0/+4
|
* glsl: Add a lowering pass to move discards out of if-statements.Kenneth Graunke2010-12-011-1/+3
| | | | | | | This should allow lower_if_to_cond_assign to work in the presence of discards, fixing bug #31690 and likely #31983. NOTE: This is a candidate for the 7.9 branch.
* ir_to_mesa: Add support for conditional discards.Marek Olšák2010-12-011-2/+7
| | | | | | | NOTE: This is a candidate for the 7.9 branch. Signed-off-by: Marek Olšák <[email protected]> Signed-off-by: Kenneth Graunke <[email protected]>
* r600c: fix some opcodes on evergreenAlex Deucher2010-12-011-8/+56
| | | | | | | | | | There were a few places where we were using the wrong opcodes on evergreen. arl still needs to be fixed on evergreen; see r600g for reference. NOTE: This is a candidate for the 7.9 branch. Signed-off-by: Alex Deucher <[email protected]>
* r300/compiler: implement and lower OPCODE_CLAMPMarek Olšák2010-12-013-0/+28
| | | | Needed for st/vega.
* i965: also using align1 mode for math2 on sandybridgeZhenyu Wang2010-12-011-6/+50
| | | | | Like Eric's workaround patch of commit 490c23ee6be2e8531b5a14d42f808de83d401130. This forces to align1 mode for math2 too.
* i965: Fix type of gl_FragData[] dereference for FB write.Eric Anholt2010-11-291-1/+3
| | | | | Fixes glsl-fs-fragdata-1, and hopefully Eve Online where I noticed this bug in the generated shader. Bug #31952.
* drivers/x11: unifdef XFree86ServerAdam Jackson2010-11-2913-389/+9
| | | | | | | This code was for the old GLcore build of the software rasteriser. The X server switched to a DRI driver for software indirect GLX long ago. Signed-off-by: Adam Jackson <[email protected]>
* st/mesa: fix texture border color for RED and RG base formatsMarek Olšák2010-11-291-0/+12
| | | | | | | The spec says the border color should be consistent with the internal format. Signed-off-by: Brian Paul <[email protected]>
* mesa: check for posix_memalign() errorspontus lidman2010-11-291-1/+2
| | | | Signed-off-by: Brian Paul <[email protected]>
* st/mesa: Set PIPE_TRANSFER_DISCARD for GL_MAP_INVALIDATE_RANGE/BUFFFER_BITMathias Fröhlich2010-11-261-0/+6
| | | | | | Signed-off-by: Brian Paul <[email protected]> Note: this is a candidate for the 7.9 branch.
* st/mesa: fix mapping of zero-sized buffer objectsBrian Paul2010-11-261-12/+18
| | | | Fixes http://bugs.freedesktop.org/show_bug.cgi?id=31934
* r300/compiler: move util functions to radeon_compiler_utilMarek Olšák2010-11-2610-89/+108
| | | | | | | The compiler seriously needs a cleanup as far as the arrangement of functions is concerned. It's hard to know whether some function was implemented or not because there are so many places to search in and it can be anywhere and named anyhow.
* r300/compiler: add a function for swizzling a maskMarek Olšák2010-11-262-6/+15
|
* r300/compiler: remove duplicate function rc_mask_to_swzMarek Olšák2010-11-263-14/+2
|
* r300/compiler: fix rc_rewrite_depth_out for it to work with any instructionMarek Olšák2010-11-261-21/+8
| | | | | | It looks like the function was originally written for ARB_fragment_program. NOTE: This is a candidate for the 7.9 branch.
* r300/compiler: Move declaration before code.Vinson Lee2010-11-241-1/+1
| | | | | | Fixes this GCC warning with linux-x86 build. radeon_pair_regalloc.c: In function ‘compute_live_intervals’: radeon_pair_regalloc.c:222: warning: ISO C90 forbids mixed declarations and code
* r300/compiler: Move declaration before code.Vinson Lee2010-11-241-1/+1
| | | | | | Fixes this GCC warning with linux-x86 build. radeon_pair_regalloc.c: In function ‘compute_live_intervals’: radeon_pair_regalloc.c:221: warning: ISO C90 forbids mixed declarations and code
* mesa: Fix glGet of ES2's GL_MAX_*_VECTORS properties.Kenneth Graunke2010-11-241-6/+11
| | | | | | | | | | | | Previously, the get table listed all three as having custom locations, yet find_custom_value did not have cases to handle them. MAX_VARYING_VECTORS does not need a custom location since MaxVaryings is already stored as float[4] (or vec4). MaxUniformComponents is stored as the number of floats, however, so a custom implementation that divides by 4 is necessary. Fixes bugs.freedesktop.org #31495.
* meta: Mask Stencil.Clear against stencilMax in _mesa_meta_ClearPeter Clifton2010-11-241-1/+2
| | | | | | | | | | | | | | | | | | This fixes incorrect behaviour when the stencil clear value exceeds the size of the stencil buffer, for example, when set with: glClearStencil (~1); /* Set a bit pattern of 111...11111110 */ glClear (GL_STENCIL_BUFFER_BIT); The clear value needs to be masked by the value 2^m - 1, where m is the number of bits in the stencil buffer. Previously, we passed the value masked with 0x7fffffff to _mesa_StencilFuncSeparate which then clamps, NOT masks the value to the range 0 to 2^m - 1. The result would be clearing the stencil buffer to 0xff, rather than 0xfe. Signed-off-by: Peter Clifton <[email protected]> Signed-off-by: Brian Paul <[email protected]>
* x11: remove test_proxy_teximage() functionBrian Paul2010-11-241-38/+1
| | | | This was really just for testing purposes.
* mesa: added _mesa_format_image_size64()Brian Paul2010-11-242-0/+34
|
* mesa: add assertion and update comment in _mesa_format_image_size()Brian Paul2010-11-241-1/+2
|
* i965: Don't write mrf assignment for pointsize outputKristian Høgsberg2010-11-241-1/+2
| | | | https://bugs.freedesktop.org/show_bug.cgi?id=31894
* i915: Disallow alpha, red, RG, and sRGB as render targetsIan Romanick2010-11-231-1/+7
| | | | | | Fixes bugzilla #31832 NOTE: This is a candidate for the 7.9 branch.
* glsl: start restoring some geometry shader codeBrian Paul2010-11-231-0/+11
|
* glsl: better handling of linker failuresBrian Paul2010-11-231-19/+33
| | | | | Upon link error, exit translation loop, free program instructions. Check for null pointers in calling code.
* mesa: use gl_shader_type enumBrian Paul2010-11-231-3/+3
|
* mesa: replace #defines with new gl_shader_type enumBrian Paul2010-11-238-40/+53
|
* mesa: _mesa_valid_register_index() to validate register indexesBrian Paul2010-11-232-0/+103
|
* mesa: rename, make _mesa_register_file_name() non-staticBrian Paul2010-11-232-11/+12
| | | | Plus remove unused parameter.
* glsl: use gl_register_file in a few placesBrian Paul2010-11-231-4/+4
|
* glsl: fix off by one in register index assertionBrian Paul2010-11-231-1/+1
|
* i965: Use the new embedded compare in SEL on gen6 for VS MIN and MAX opcodes.Eric Anholt2010-11-231-6/+24
| | | | Cuts the extra CMP instruction that used to precede SEL.
* i965: Don't upload line smooth params unless we're line smoothing.Eric Anholt2010-11-231-2/+3
|
* i965: Don't upload line stipple pattern unless we're stippling.Eric Anholt2010-11-231-0/+3
|
* i965: Don't upload polygon stipple unless required.Eric Anholt2010-11-231-1/+7
|
* i965: Move gen4 blend constant color to the gen4 blending file.Eric Anholt2010-11-232-34/+25
|
* r300/compiler: Don't allow presubtract sources to be remapped twiceTom Stellard2010-11-231-1/+8
| | | | | | https://bugs.freedesktop.org/show_bug.cgi?id=31193 NOTE: This is a candidate for the 7.9 branch.
* mesa: Clean up header file inclusion in syncobj.h.Vinson Lee2010-11-221-1/+5
|
* mesa: fix regression from b4bb6680200b5a898583392f4c831c02f41e63f7Xiang, Haihao2010-11-231-0/+7
| | | | | | | Pending commands to the previous context aren't flushed since commit b4bb668 Reported-by: Oleksiy Krivoshey <[email protected]> Signed-off-by: Xiang, Haihao <[email protected]>
* r600c: fix VC flush on cedar and palmAlex Deucher2010-11-221-1/+5
|
* r600c: add Ontario Fusion APU supportAlex Deucher2010-11-225-1/+24
| | | | Signed-off-by: Alex Deucher <[email protected]>
* st/mesa: set MaxUniformComponentsMarek Olšák2010-11-221-0/+1
| | | | Signed-off-by: Brian Paul <[email protected]>
* swrast: init alpha value to 1.0 in opt_sample_rgb_2d()Brian Paul2010-11-221-0/+1
|
* gallium: add PIPE_SHADER_CAP_SUBROUTINESMarek Olšák2010-11-221-2/+2
| | | | | | | | | | | This fixes piglit/glsl-vs-main-return and glsl-fs-main-return for the drivers which don't support RET (i915g, r300g, r600g, svga). ir_to_mesa does not currently generate subroutines, but it's a matter of time till it's added. It would then break all the drivers which don't implement them, so this CAP makes sense. Signed-off-by: Marek Olšák <[email protected]>
* r300/compiler: Add a more efficient version of rc_find_free_temporary()Tom Stellard2010-11-213-23/+110
|
* r300/compiler: Enable rename_reg pass for r500 cardsTom Stellard2010-11-212-79/+16
| | | | | In addition, the rename_reg pass has been rewritten to use rc_get_readers().
* r300/compiler: Use presubtract operations as much as possibleTom Stellard2010-11-218-67/+204
| | | | | Previously, presubtract operations where only being used by instructions with less than three source source registers.