summaryrefslogtreecommitdiffstats
path: root/src/gbm/backends/dri
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2014-08-13 12:25:58 -0700
committerJason Ekstrand <[email protected]>2014-09-30 10:29:14 -0700
commit24d023b9fe18847158ec6c14e1e0e32ff022f060 (patch)
tree5d0ed4217a5bc26fb9ab208393d4b4442fad6ebb /src/gbm/backends/dri
parent1030ee6e9b0cc6c05a7f25c17c0cf722a6731c89 (diff)
i965/fs: Add a concept of a width to fs_reg
Every register in i965 assembly implicitly has a concept of a "width". Usually, this is derived from the execution size of the instruction. However, when writing a compiler it turns out that it is frequently a useful to have the width explicitly in the register and derive the execution size of the instruction from the widths of the registers used in it. This commit adds a width field to fs_reg along with an effective_width() helper function. The effective_width() function tells you how wide the register effectively is when used in an instruction. For example, uniform values have width 1 since the data is not actually repeated, but when used in an instruction they take on the width of the instruction. However, for some instructions (LOAD_PAYLOAD being the notable exception), the width is not the same. Signed-off-by: Jason Ekstrand <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/gbm/backends/dri')
0 files changed, 0 insertions, 0 deletions