- 21 Jul, 2015 4 commits
-
-
Ilia Mirkin authored
Generated by running: git grep -l INLINE src/gallium/ | xargs sed -i 's/\bINLINE\b/inline/g' git grep -l INLINE src/mesa/state_tracker/ | xargs sed -i 's/\bINLINE\b/inline/g' git checkout src/gallium/state_trackers/clover/Doxyfile and manual edits to src/gallium/include/pipe/p_compiler.h src/gallium/README.portability to remove mentions of the inline define. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Acked-by:
Marek Olšák <marek.olsak@amd.com>
-
Samuel Pitoiset authored
This fixes the following piglit test: ext_transform_feedback-immediate-reuse-uniform-buffer Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Samuel Pitoiset authored
This fixes the following piglit test: ext_transform_feedback-immediate-reuse-uniform-buffer Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Adam Jackson authored
gcc says: sb/sb_sched.cpp: In member function 'bool r600_sb::alu_group_tracker::try_reserve(r600_sb::alu_node*)': sb/sb_sched.cpp:492:7: warning: suggest parentheses around operand of '!' or change '&' to '&&' or '!' to '~' [-Wparentheses] if (!trans & fbs) It happens to be harmless; if fbs is ever non-zero, it will be VEC_210, which is 5, so (!trans & 5) == 1 and the branch works as expected. But logical AND is clearly what was meant. Reviewed-by:
Alex Deucher <alexander.deucher@amd.com> Signed-off-by:
Adam Jackson <ajax@redhat.com>
-
- 20 Jul, 2015 7 commits
-
-
Samuel Pitoiset authored
Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Acked-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Samuel Pitoiset authored
This fixes a compilation warning introduced in commit 05a12c53 (gallium: add interface for writable shader images). While we are at it, fix indentation and rename parameters according to the gallium interface. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Samuel Pitoiset authored
Only constbufs must be aligned to 0x100, but since all buffers can be rebinded as constant buffers they must be also aligned. This patch prevents this behaviour by aligning everything to 256-byte increments at buffer creation. This fixes dmesg fails for the following piglit test: ext_transform_feedback-immediate-reuse-uniform-buffer -auto -fbo Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Samuel Pitoiset authored
NV50_3D_BIND_TSC only allows to bind 16 samplers, and since we don't want to do anything with NV50_3D_BIND_TSC2, just limit the maximum number of samplers to 16 like for nvc0. This fixes dmesg fails with the following piglit test: max-samplers But the test still fails. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Samuel Pitoiset authored
Fixes the following piglit test: occlusion_query_meta_no_fragments Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Samuel Pitoiset authored
This is loosely based on nvc0. Signed-off-by:
Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Ilia Mirkin authored
It appears that the G80 did not have support for the sampler view first/last clamping. Put the view's last level in the place of the texture's so that it doesn't go past what the sampler view allows. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
-
- 18 Jul, 2015 4 commits
-
-
Ilia Mirkin authored
Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
-
Ilia Mirkin authored
There's no need to deal with samplers for texture size queries. That code also was accidentally setting an invalid sIndirectSrc position, but it can now just be removed. Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
-
Ilia Mirkin authored
Signed-off-by:
Ilia Mirkin <imirkin@alum.mit.edu> Cc: mesa-stable@lists.freedesktop.org
-
Emma Anholt authored
This gives the kernel a chance to validate and lock down the data, without having to deal with mmap zapping. With this, GLBenchmark stops on a texture relocations, because we'd recycled a shader BO as another shader and failed to revalidate, since we weren't clearing the cached validation state on mmap faults.
-
- 17 Jul, 2015 4 commits
-
-
Emma Anholt authored
-
Emma Anholt authored
-
Emma Anholt authored
The hash table considers key 0 to be the empty key.
-
Emma Anholt authored
On a release build, this makes the rest of vc4_qpu_validate.c go away (the compiler didn't know that our qpu helper function calls had no side effects).
-
- 16 Jul, 2015 4 commits
-
-
Marek Olšák authored
PIPE_CAPs will be added some other time. Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Marek Olšák authored
Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Marek Olšák authored
PIPE_CAPs and TGSI support will be added later. The TGSI support should be straightforward. We only need to split TGSI_FILE_RESOURCE into TGSI_FILE_IMAGE and TGSI_FILE_BUFFER, though duplicating all opcodes shouldn't be necessary. The idea is: * ARB_shader_image_load_store should use set_shader_images. * ARB_shader_storage_buffer_object should use set_shader_buffers(slots 0..M-1) if M shader storage buffers are supported. * ARB_shader_atomic_counters should use set_shader_buffers(slots M..N) if N-M+1 atomic counter buffers are supported. PIPE_CAPs can describe various constraints for early DX11 hardware. Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
Marek Olšák authored
Reviewed-by:
Ilia Mirkin <imirkin@alum.mit.edu>
-
- 14 Jul, 2015 12 commits
-
-
Emma Anholt authored
Cuts another 12% of vc4_uniforms.o, in exchange for computing it at CSO creation time.
-
Emma Anholt authored
In exchange for a bit of space and computation in CSO setup, we cut vc4_uniform.c (draw time) code size by 4.8%.
-
Emma Anholt authored
The rest of vc4_program.c is about compiling, while this is about uniform emit at draw time.
-
Emma Anholt authored
No code generation changes from this, but it'll be useful to have this next time I go checking -Wdouble-promotion.
-
Emma Anholt authored
-
Emma Anholt authored
-
Emma Anholt authored
Cuts another 88 bytes of compiled code.
-
Emma Anholt authored
Drops 680 bytes of code, from avoiding a bunch of extra updates to the next pointer in the struct.
-
Emma Anholt authored
I needed to rewrite this a bit for safety checking in the next commit. Despite being a static inline of the same thing that was being done, we lose 36 bytes of code for some reason.
-
Emma Anholt authored
Now that RCL generation is in the kernel, we don't have any other callers. Oddly, the compiler generates another 8 bytes of code for this, but the simplification is worth it.
-
Emma Anholt authored
Now that we don't resize the CL as we build (it's set up at the top by vc4_start_draw()), we can store the pointers instead of offsets from the base. Saves a bit of math in emitting relocs (about 60 bytes of code).
-
Emma Anholt authored
-
- 13 Jul, 2015 2 commits
-
-
Emil Velikov authored
Signed-off-by:
Emil Velikov <emil.l.velikov@gmail.com>
-
Dave Airlie authored
Michel reported this still failed, and this fixed it Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 12 Jul, 2015 1 commit
-
-
Dave Airlie authored
This adds the translation from TGSI to AMDGPU llvm backend, for the 64-bit opcodes. The backend pretty much handles everything for us fine. There is one patch required for SI DFRAC support, that I know off. [airlied: fixed missing comma, updated relnotes] Reviewed-by:
Marek Olšák <marek.olsak@amd.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 11 Jul, 2015 2 commits
-
-
Dave Airlie authored
temp_reg needs to be last, as we increment things away from it, otherwise on cayman some tests were overwriting the index regs. Fixes 2 piglit with ARB_gpu_shader5 forced on cayman. Reviewed-by:
Glenn Kennard <glenn.kennard@gmail.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
Cayman needs a different method to upload the CF IDX0/1 This fixes 31 piglits when ARB_gpu_shader5 is forced on with cayman. Reviewed-by:
Glenn Kennard <glenn.kennard@gmail.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-