summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-10-23scons: Do not use -fvisibilty=hidden on Cygwin.Vinson Lee1-1/+1
This is a follow-up to commit db78643182dc39ed592dd8c2e5fc7c8eeb7316a1. Signed-off-by: Vinson Lee <vlee@freedesktop.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-23mesa: fix indentation in get-pick-list.sh scriptAndreas Boll1-4/+4
NOTE: This is a candidate for the stable branches. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23mesa: grep for commits with cherry picked in commit message only onceAndreas Boll1-2/+9
and save them temporary in already_picked NOTE: This is a candidate for the stable branches. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23mesa: optimize get-pick-list.sh scriptAndreas Boll1-4/+3
cuts down the while loop iterations from 4600 to 380 commits at the moment NOTE: This is a candidate for the stable branches. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23mesa: simplify get-pick-list.sh scriptAndreas Boll1-1/+3
and add a description for the script NOTE: This is a candidate for the stable branches. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23mesa: add get-pick-list.sh script into bin/Ian Romanick1-0/+21
NOTE: This is a candidate for the stable branches.
2012-10-23_mesa_create_exec_table: GLES3 fixes.Paul Berry10-43/+68
This patch sets up the dispatch table for the following GLES3 functions when a GLES3 context is in use: - BeginQuery - BeginTransformFeedback - BindSampler - BindTransformFeedback - BlitFramebuffer - ClearBufferfi - ClearBufferfv - ClearBufferiv - ClearBufferuiv - ClientWaitSync - CopyBufferSubData - DeleteQueries - DeleteSamplers - DeleteSync - DeleteTransformFeedbacks - EndQuery - EndTransformFeedback - FenceSync - FramebufferTextureLayer - GenQueries - GenSamplers - GenTransformFeedbacks - GetInteger64v - GetQueryObjectuiv - GetQueryiv - GetSamplerParameterfv - GetSamplerParameteriv - GetStringi - GetSynciv - GetTransformFeedbackVarying - GetVertexAttribIiv - GetVertexAttribIuiv - IsQuery - IsSampler - IsSync - IsTransformFeedback - PauseTransformFeedback - RenderbufferStorageMultisample - ResumeTransformFeedback - SamplerParameterf - SamplerParameterfv - SamplerParameteri - SamplerParameteriv - TransformFeedbackVaryings - VertexAttribDivisor - VertexAttribIPointer - WaitSync And it avoids setting up the dispatch table for these non-GLES3 functions: - ColorMaski - GetBooleani_v - Enablei - Disablei - IsEnabledi - ClearColorIiEXT - ClearColorIuiEXT - TextureStorage2DEXT - TextureStorage3DEXT - GetActiveUniformName - GetnUniformdv - GetnUniformfv - GetnUniformiv - GetnUniformuiv Reviewed-by: Brian Paul <brianp@vmware.com> v2: Make the ctx argument to _mesa_init_transform_feedback_dispatch() a const pointer. Add a comment to remind us to add GetBufferParameteri64v once tests exist for it. Also add VertexAttribDivisor for GLES3, and remove GetActiveUniformName and GetnUniform{dv,fv,iv,uiv} for GLES3. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23_mesa_create_exec_table(): deprecate ProgramStringARB.Paul Berry1-1/+3
This function is only useful for the ARB_{vertex,fragment}_program extensions, which we don't expose in core contexts. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23_mesa_create_exec_table: de-deprecate GetPointerv.Paul Berry1-1/+3
glGetPointerv was de-deprecated in GL 4.3, because GL 4.3 adds functionality from KHR_debug and ARB_debug_output, which require glGetPointerv. This patch modifies _mesa_create_exec_table() to populate glGetPointerv in the dispatch table for core contexts. Technically this is not in compliance with the spec--what we really ought to do for core contexts is expose glGetPointerv only when a GL 4.3 context is in use or one of the two extensions is present. However, it seems silly to go to that extra work, since the only client-visible effect would be for glGetPointerv to raise an INVALID_OPERATION error instead of an INVALID_ENUM error. Besides, the other functions set up by _mesa_create_exec_table() only depend on the API in use, not on the GL version or extensions supported. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23glapi: Alias VertexAttribDivisor and VertexAttribDivisorARB.Paul Berry1-1/+2
There's no reason to have separate slots in the dispatch table for these two functions, since they are synonymous. Note: previous to this patch, we never populated the dispatch table slot for VertexAttribDivisor, which was ok, since it is not required until 3.3. After this patch, both functions will be usable provided that the ARB_instanced_arrays extension is present. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23glapi: Alias ClampColor and ClampColorARB.Paul Berry3-3/+1
There's no reason to have separate slots in the dispatch table for these two functions, since they are synonymous. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-23main: Fix warning ('struct gl_context' declared inside parameter list).Paul Berry1-0/+1
This eliminates a warning in GCC 4.7.1. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-22mesa: Return 0 for GL_CURRENT_QUERY with a mismatched query target.Eric Anholt1-1/+1
With the previous two commits, this fixes piglit GL_ARB_occlusion_query2/api. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-22mesa: Refuse to EndQuery with a mismatched query target.Eric Anholt1-0/+10
v2: Add a comment about what we're checking for. Reviewed-by: Brian Paul <brianp@vmware.com> (v1) Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-22mesa: Throw an error for a new query on an already-active query target.Eric Anholt1-0/+13
There's a similar test below, but it's not the same: that one checks whether this query object is already active (potentially on another target). Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2012-10-22i965: Actually add support for GL_ANY_SAMPLES_PASSED from GL_ARB_oq2.Eric Anholt1-0/+12
v2: Fix mangled sentence in the comment, and make the loop exit early. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> (v1)
2012-10-22st/mesa: free TGSI tokens with ureg_free_tokens()Brian Paul1-1/+1
since they're allocated by ureg_get_tokens(). NOTE: This is a candidate for the 8.0 and 9.0 branches.
2012-10-22st/mesa: replace REALLOC() with realloc()Brian Paul1-8/+2
We should use the later since we're freeing the memory with free(), not the gallium FREE() macro. This fixes a mismatch when using the gallium debug memory functions. NOTE: This is a candidate for the 9.0 branch.
2012-10-22docs: GL_ARB_texture_storage is supported for all gallium driversBrian Paul1-1/+1
2012-10-22Re-add HAVE_PTHREADS preprocessor macroMatt Turner1-5/+5
Broken in commit 814345f54b. NOTE: This is a candidate for the 9.0 branch.
2012-10-21gbm: Use the kms dumb ioctls for cursor instead of libkmsKristian Høgsberg3-50/+77
We need to create bos suitable for cursor usage that we can map and write data into. The kms dumb ioctls is all we need for this, so drop the dependency on libkms.
2012-10-19r600g: Remove special handling of PRED_SET* insructions for LLVM 3.2Tom Stellard1-0/+2
The 3.2 version of the backend now sets all the correct fields for PRED_SET* instructions.
2012-10-19radeon/llvm: Sort tgsi opcode action initializationTom Stellard1-59/+50
This was done in order to identify and remove duplicate entries.
2012-10-19radeon/llvm: Fix lowering TGSI_OPCODE_SSGTom Stellard1-1/+1
2012-10-19i965: Stop flushing the batch on timestamp queries, too.Eric Anholt1-1/+0
Given the usecase we have of trying to measure timestamps across individual draw calls, flushing will totally mess up what people are trying to measure. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-19i965: Don't flush the batch immediately on EndQuery.Eric Anholt1-5/+14
The theory I had when I wrote the code was that you wanted to minimize latency on your queries because the app was going to ask soon. Only, it turns out that everybody batches up their queries and asks for the results later (often after the next SwapBuffers!), so this was a pessimization. Until now, I had no workload where it mattered enough to benchmark. Recently I started playing some Minecraft, which uses tons of queries to decide whether to render chunks of the terrain. For that app, avoiding the flush in the query-generation loop improves performance 22.7% +/- 4.7% (n=3) on an apitrace capture of it (confirmed in game by watching the fps meter found by pressing F3, 15/16 -> 20/21 fps). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-19i965/fs: Fix typo in refactor of brw_fs_reg_allocate.cpp.Eric Anholt1-1/+1
I'm amazed that my usual warnings check didn't catch this, and that this passed piglit.
2012-10-19i965/vs: include format argument in debug printfTapani Pälli1-1/+1
otherwise some compilers will throw error "error: format not a string literal and no format arguments" Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-19st/mesa: Fix source miptree level for copying data to finalized miptree.Michel Dänzer1-1/+5
Fixes WebGL texture mips conformance test, no piglit regressions. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44912 NOTE: This is a candidate for the stable branches. Signed-off-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Brian Paul <brianp@vmware.com> Tested-by: Andreas Boll <andreas.boll.dev@gmail.com>
2012-10-19clover: No need for clover::is_zero() to be a functor.Francisco Jerez5-10/+8
Simplify is_zero() somewhat, and as a side effect work around a gcc compiler bug that causes build failure. https://bugs.freedesktop.org/show_bug.cgi?id=56140 Reported-by: Dmitry Cherkassov <dcherkassov@gmail.com>
2012-10-18st/mesa: improve the guess_and_alloc_texture() heuristicBrian Paul1-0/+2
If GL_BASE_LEVEL==0 and GL_MAX_LEVEL==0 that's a pretty good hint that there'll be a single mipmap level in the texture. Google Earth sets the texture's state this way before the first glTexImage call. This saves a bit of texture memory.
2012-10-18gallium: remove unused data pointer from pipe_transferMarek Olšák6-6/+0
Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-18intel: Skip texsubimage fastpath for more pixel unpack state (v2)Chad Versace1-1/+6
Fixes piglit tests "unpack-teximage2d --pbo=* --format=GL_BGRA" on Sandybridge+. The fastpath was checking an incomplete set of pixel unpack state. This patch adds checks for all the fields of gl_pixelstore_attrib that affect 2D texture uploads. Also, it begins permitting the case where GL_UNPACK_ROW_LENGTH is 0. Ideally, we would just ask a unicorn to JIT this fastpath for us in a way that safely handles the unpacking state. Until then, it's safer if only a small set of situations activate the fastpath. v2: Use _mesa_is_bufferobj(), per Anholt. Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
2012-10-17Finish _HAVE_FULL_GL removalMatt Turner4-51/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17configure.ac: Fix LLVM 3.2 r600/radeonsi error messageDmitry Cherkasov1-1/+1
Reviewed-by: Tom Stellard <thomas.stellard@amd.com> Signed-off-by: Dmitry Cherkasov <Dmitrii.Cherkasov@amd.com>
2012-10-17svga: add svga_screen_cache_dump() debug helperBrian Paul2-0/+37
2012-10-17wayland: Drop support for ill-defined, unused wl_egl_pixmapKristian Høgsberg5-294/+4
It doesn't provide the cross-process buffer sharing that a window system pixmap could otherwise support and we don't have anything left that uses this type of surface.
2012-10-17wayland: Remove 0.85 compatibility #ifdefsKristian Høgsberg1-26/+0
2012-10-17egl/wayland: Update to Wayland 0.99 APIKristian Høgsberg7-69/+173
The 0.99.0 Wayland release changes the event API to provide a thread-safe mechanism for receiving events specific to a subsystem (such as EGL) and we need to use it in the EGL platform. The Wayland protocol now also requires a commit request to make changes take effect, issue that from eglSwapBuffers.
2012-10-17i965/fs: Statically allocate the reg_sets at context initialization.Eric Anholt3-49/+61
Now that we've replaced all the variable settings other than reg_width, it's easy to hang on to this (the expensive part of setting up the allocator). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17i965/fs: Allocate registers in the unused parts of the gen7 MRF hack range.Eric Anholt2-1/+63
This should also reduce register pressure on gen7+, like the previous commit. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17i965/fs: Reduce the interference between payload regs and virtual GRFs.Eric Anholt2-19/+152
Improves performance of the Lightsmark penumbra shadows scene by 15.7% +/- 1.0% (n=15), by eliminating register spilling. (tested by smashing the list of scenes to have all other scenes have 0 duration -- includes additional rendering of scene description text that normally doesn't appear in that scene) v2: Allow allocation of all but g0/g1 of the payload. v3: Pull count_to_loop_end() out to a helper function. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> (v2, recommended v3)
2012-10-17i965/fs: Expose the payload registers to the register allocator.Eric Anholt1-7/+39
For now, nothing else can get allocated over them, but that will change. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17i965/fs: Remove extra allocation for classes[].Eric Anholt1-1/+1
This was to slot in the magic aligned pairs class, but it got moved to a descriptive name later. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17i965/fs: Make the register allocation class_sizes[] choice static.Eric Anholt2-60/+42
Based on split_virtual_grfs(), we choose the same set every time, so set it in stone. This will help us avoid regenerating the somewhat expensive class/register set setup every compile. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17i965/vs: Improve live interval calculation.Eric Anholt4-96/+388
This is derived from the FS visitor code for the same, but tracks each channel separately (otherwise, some typical fill-a-channel-at-a-time patterns would produce excessive live intervals across loops and cause spilling). Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=48375 (crash -> failure, can turn into pass by forcing unrolling still)
2012-10-17i965/vs: Fix the mlen of scratch read/write messages.Eric Anholt1-2/+2
These messages always have m0 = g0 and m1 = offset, and write has m2 = data. Avoids regression in opt_compute_to_mrf() with a change to scratch writes to set up the data as an MRF write in the IR. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17i965: Make the cfg reusable from the VS.Eric Anholt5-16/+16
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17i965: Share the predicate field between FS and VS.Eric Anholt13-33/+32
Note that BRW_PREDICATE_NONE is 0 and BRW_PREDICATE_NORMAL is 1, so that's a lot like the true/false we had in the FS before. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-17i965: Rename fs_cfg types to not mention fs.Eric Anholt8-65/+65
fs_bblock_link -> bblock_link fs_bblock -> bblock_t (to avoid conflicting with all the fs_bblock *bblock) fs_cfg -> cfg_t (to avoid conflicting with all the fs_cfg *cfg) Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>