- 29 Jan, 2013 10 commits
-
-
Brian Paul authored
The gallium docs for pipe_screen::is_format_supported() says that samples==0 or samples==1 both mean that multisampling is not supported. Return GL_MAX_SAMPLES==0 instead of 1 for consistency with other drivers. Note: This is a candidate for the 9.0 branch. Reviewed-by:
Marek Olšák <maraeo@gmail.com>
-
Brian Paul authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Brian Paul authored
Reviewed-by:
Ian Romanick <ian.d.romanick@intel.com>
-
Jose Fonseca authored
Simply by adjusting the vector element width after/before reading/writing the depth-stencil values. Ran several GL_DEPTH_COMPONENT16 piglit tests without regressions. Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Roland Scheidegger <sroland@vmware.com>
-
Kenneth Graunke authored
The maximum number of URB entries come from the 3DSTATE_URB_VS and 3DSTATE_URB_GS state packet documentation; the thread count information comes from the 3DSTATE_VS and 3DSTATE_PS state packet documentation. NOTE: This is a candidate for the 9.0 branch. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Signed-off-by:
Eugeni Dodonov <eugeni.dodonov@intel.com>
-
Kenneth Graunke authored
The packet length may change at some point in the future. Specifying it explicitly (rather than hardcoding it in the command #define) allows us to change it much more easily in the future. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> Reviewed-by:
Eric Anholt <eric@anholt.net>
-
Matt Turner authored
Left behind by a8ab7e33.
-
Matt Turner authored
I did not list the *_get_program_binary extensions since they're not useful to anyone with their current implementation (that supports 0 binary formats).
-
Eric Anholt authored
Before, we were keeping a CPU-only buffer to accumulate the batchbuffer in, which was an improvement over mapping the batch through the GTT directly (since any readback or other failure to stream through write combining correctly would hurt). However, on LLC-sharing architectures we can do better by mapping the batch directly, which reduces the cache footprint of the application since we no longer have this extra copy of a batchbuffer around. Improves performance of GLBenchmark 2.1 offscreen on IVB by 3.5% +/- 0.4% (n=21). Improves Lightsmark performance by 1.1 +/- 0.1% (n=76). Improves cairo-gl performance by 1.9% +/- 1.4% (n=57). No statistically significant difference in GLB2.1 on SNB (n=37). Improves cairo-gl performance by 2.1% +/- 0.1% (n=278).
-
Jerome Glisse authored
Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
- 28 Jan, 2013 5 commits
-
-
Jerome Glisse authored
Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
Vinson Lee authored
Fixes side effect in assertion defects reported by Coverity. Note: This is a candidate for the 9.1 branch. Signed-off-by:
Vinson Lee <vlee@freedesktop.org> Reviewed-by:
Chad Versace <chad.versace@linux.intel.com>
-
Tapani Pälli authored
Currently a gralloc internal structure is exposed to Mesa, Use a query function instead to maintain ABI compatibility. Signed-off-by:
Tapani Pälli <tapani.palli@intel.com> Reviewed-by:
Chad Versace <chad.versace@linux.intel.com>
-
Paul Berry authored
Comment change only.
-
Jerome Glisse authored
Old kernel do not have dma support, patch pushed were missing some of the check needed to not use dma. Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
- 25 Jan, 2013 1 commit
-
-
Zack Rusin authored
Only drivers supporting DRI2 version >=4 support GLX_INTEL_swap_event. So lets mark it as such otherwise applications which use this extension (i.e. everything based on Clutter, e.g. gnome-shell) break horribly on drivers supporting DRI2 versions only up to 3. Note: This is a candidate for the 9.0 branch. Reviewed-by:
Brian Paul <brianp@vmware.com>
-
- 28 Jan, 2013 12 commits
-
-
Vadim Girlin authored
Get rid of special handling for reserved regs. Use one intrinsic for all kinds of interpolation. v2[Vincent Lejeune]: Rebased against current master Reviewed-by:
Tom Stellard <thomas.stellard@amd.com> Signed-off-by:
Vadim Girlin <vadimgirlin@gmail.com>
-
Tom Stellard authored
r600_bytecode::ar_chan stores the register channel for the value that will be loaded into the AR register. At the moment, this field is only used by the LLVM backend. The default backend always sets ar_chan = 0.
-
Tom Stellard authored
-
Vincent Lejeune authored
Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59588Reviewed-by:
Tom Stellard <thomas.stellard@amd.com>
-
-
Alex Deucher authored
It shouldn't be needed and older kernels don't support it. v2: Replace with PS partial flush as before. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=59945Signed-off-by:
Alex Deucher <alexander.deucher@amd.com> Reviewed-by:
Marek Olšák <maraeo@gmail.com>
-
Jerome Glisse authored
v2: Add virtual address to dma src/dst offset for cayman Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
Jerome Glisse authored
We keep track of ring emission order in a stack, whenever we need to flush we empty the stack in a fifo order. There is few helpers function for bo mapping and other ring activities that will make sure that the ring stack is properly flush and submitted. v2: fix st flush path, and other flush path to properly flush all rings if necessary v3: - improve name of ring helpers - make sure that each time a cs is gona be written it endup at top of the stack to avoid any issue such as : STACK[0] = dma (withbo A,B) STACK[1] = gfx (withbo C,D) Now if code try to emit a dma command relative to bo C or D it will start writting cmd stream into the cs and once it reach the point where it adds relocation it will flush. At that point the cs will have cmd that don't have proper relocation into the relocation buffer and kernel will just refuse to run. v4: - Drop the stack idea as it turn out there is no way to use it or benefit from it. Any time the driver start command on other ring, it always need to flush the previous ring. So make code simpler by not using a stack. Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
Jerome Glisse authored
Add ring support, you can create a cs for each ring. DMA ring is bit special regarding relocation as you must emit as much relocation as there is use of the buffer. v2: - Improved comment on relocation changes - Use a single thread to queue cs submittion this simplify driver code while not impacting performances. Rational for this is that you have to wait for all previous submission to have completed so there was never a case while we could have 2 different thread submitting a command stream at the same time. This code just consolidate submission into one single thread per winsys. v3: - Do not use semaphore for empty queue signaling, instead use cond var. This is because it's tricky to maintain an even number of call to semaphore wait and semaphore signal (the number of cs in the stack would for instance make that number vary). Signed-off-by:
Jerome Glisse <jglisse@redhat.com>
-
Roland Scheidegger authored
Make it obvious what "unit" this is (no change in functionality). draw still uses "unit" in places where it changes the shader by adding texture sampling itself - it seems like this can't work with shaders using dx10-style sample opcodes (can't mix gl-style and dx10-style sample instructions in a shader). Reviewed-by:
Brian Paul <brianp@vmware.com> Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-
Roland Scheidegger authored
Split the sampler interface to use separate sampler and texture (sampler_view) state. This is needed to support dx10-style sampling instructions. This is not quite complete since both draw/llvmpipe don't really track textures/samplers independently yet, as well as the gallivm code not quite using the right sampler or texture index respectively (but it should work for the sampling codes used by opengl). We are however losing some optimizations in the process, apply_max_lod will no longer work, and we potentially could end up with more (unnecessary) recompiles (if switching textures with/without mipmaps only so it shouldn't be too bad). v2: don't use different callback structs for sampler/sampler view functions (which just complicates things), fix up sampling code to actually use the right texture or sampler index, and similar for llvmpipe/draw actually distinguish between samplers and sampler views. v3: fix more of PIPE_MAX_SAMPLER / PIPE_MAX_SHADER_SAMPLER_VIEWS mismatches (both in draw and llvmpipe), based on feedback from José get rid of unneeded static sampler derived state.(which also fixes the only 2 piglit regressions due to a forgotten assignment), fix comments based on Brian's feedback. v4: remove some accidental unrelated whitespace changes Reviewed-by:
José Fonseca <jfonseca@vmware.com> Reviewed-by:
Brian Paul <brianp@vmware.com>
-
Marek Olšák authored
It can eat all memory and crash in a matter of minutes with r600g.
-
- 27 Jan, 2013 2 commits
-
-
Christoph Bumiller authored
-
Matt Turner authored
Contains a fix for Khronos bug 9557. Reviewed-by:
Jordan Justen <jordan.l.justen@intel.com>
-
- 26 Jan, 2013 4 commits
-
-
Marek Olšák authored
just in case a new format is added to gallium
-
Marek Olšák authored
npix_x/y/z is wrong with NPOT textures, since it's always aligned to POT if the level is non-zero, so we can't use that. This fixes piglit/spec/EXT_texture_shared_exponent/fbo-generatemipmap-formats.
-
Marek Olšák authored
-
Alex Deucher authored
Need to add the virtual address. Reviewed-by:
Marek Olšák <maraeo@gmail.com> Signed-off-by:
Alex Deucher <alexander.deucher@amd.com>
-
- 25 Jan, 2013 6 commits
-
-
Brian Paul authored
Fixes a crash when the Redway3D Turbine demo exits. We've made this change in other places in the past. The root issue is texture objects are being shared by multiple contexts and sampler views get shared too. Sampler views have a context pointer and if that context gets deleted we may try to reference that context when finally deleting the sampler view. pipe_sampler_view_release() avoids this problem because it takes an explicit context. Reviewed-by:
Zack Rusin <zackr@vmware.com>
-
Brian Paul authored
To silence warnings about unhandled cases.
-
Brian Paul authored
Note: This is a candidate for the 9.0 branch.
-
Brian Paul authored
Note: This is a candidate for the 9.0 branch.
-
Brian Paul authored
Check the return value of calls to u_upload_alloc() and u_upload_data() and return early if needed. Since we don't have a way to propagate errors all the way up to Mesa through pipe_context::draw_vbo(), call debug_warn_once() so the user might have some clue about OOM errors. Note: This is a candidate for the 9.0 branch.
-
Brian Paul authored
We weren't properly checking the return value of these calls (and calls to u_upload_data()) to detect OOM errors. Note: This is a candidate for the 9.0 branch. Reviewed-by:
Jose Fonseca <jfonseca@vmware.com>
-