summaryrefslogtreecommitdiffstats
path: root/src/glsl/ast_to_hir.cpp
diff options
context:
space:
mode:
authorSamuel Iglesias Gonsalvez <[email protected]>2015-09-30 15:03:15 +0200
committerSamuel Iglesias Gonsalvez <[email protected]>2015-10-02 08:34:25 +0200
commitf42466322a3c6f9dacf17caaf2b8f411e41ba7aa (patch)
tree7492ebcdcbb5f219bd21d6b5ea07b4c572e5d3d3 /src/glsl/ast_to_hir.cpp
parenta552b77dccacbbf68af3c527273085224b2b4480 (diff)
glsl: emit row_major matrix's SSBO stores only for components in writemask
When writing to a column of a row-major matrix, each component of the vector is stored to non-consecutive memory addresses, so we generate one instruction per component. This patch skips the disabled components in the writemask, saving some store instructions plus avoid storing wrong data on each disabled component. Signed-off-by: Samuel Iglesias Gonsalvez <[email protected]> Reviewed-by: Iago Toral Quiroga <[email protected]>
Diffstat (limited to 'src/glsl/ast_to_hir.cpp')
0 files changed, 0 insertions, 0 deletions