• Samuel Iglesias Gonsálvez's avatar
    i965/vec4: load dvec3/4 uniforms first in the push constant buffer · 8be7de22
    Samuel Iglesias Gonsálvez authored
    Reorder the uniforms to load first the dvec4-aligned variables in the
    push constant buffer and then push the vec4-aligned ones. It takes
    into account that the relocated uniforms should be aligned to their
    channel size.
    
    This fixes a bug were the dvec3/4 might be loaded one part on a GRF and
    the rest in next GRF, so the region parameters to read that could break
    the HW rules.
    
    v2:
    - Fix broken logic.
    - Add a comment to explain what should be needed to optimise the usage
      of the push constant buffer slots, as this patch does not pack the
      uniforms.
    
    v3:
    - Implemented the push constant buffer usage optimization.
    Signed-off-by: Samuel Iglesias Gonsálvez's avatarSamuel Iglesias Gonsálvez <siglesias@igalia.com>
    Cc: "17.1" <mesa-stable@lists.freedesktop.org>
    Acked-by: Francisco Jerez's avatarFrancisco Jerez <currojerez@riseup.net>
    (cherry picked from commit e69e5c70)
    8be7de22
Name
Last commit
Last update
bin Loading commit data...
docs Loading commit data...
doxygen Loading commit data...
include Loading commit data...
m4 Loading commit data...
scons Loading commit data...
scripts Loading commit data...
src Loading commit data...
.dir-locals.el Loading commit data...
.editorconfig Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
Android.common.mk Loading commit data...
Android.mk Loading commit data...
CleanSpec.mk Loading commit data...
Makefile.am Loading commit data...
REVIEWERS Loading commit data...
SConstruct Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
autogen.sh Loading commit data...
common.py Loading commit data...
configure.ac Loading commit data...
install-gallium-links.mk Loading commit data...
install-lib-links.mk Loading commit data...