projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a4b7fd
)
i965/fs: Handle fixed HW GRF subnr in reg_offset().
author
Francisco Jerez
<currojerez@riseup.net>
Wed, 7 Sep 2016 20:41:08 +0000
(13:41 -0700)
committer
Francisco Jerez
<currojerez@riseup.net>
Wed, 14 Sep 2016 21:50:54 +0000
(14:50 -0700)
This will be useful later on when we start using reg_offset() on fixed
hardware registers.
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/mesa/drivers/dri/i965/brw_ir_fs.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_ir_fs.h
b/src/mesa/drivers/dri/i965/brw_ir_fs.h
index 2e5c8e54d221db017faff2dd8ad72a42787379c6..4ac9baabc1ee264725c58cdb769c0babe2ede0c3 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_ir_fs.h
+++ b/
src/mesa/drivers/dri/i965/brw_ir_fs.h
@@
-187,7
+187,8
@@
static inline unsigned
reg_offset(const fs_reg &r)
{
return (r.file == VGRF || r.file == IMM ? 0 : r.nr) *
- (r.file == UNIFORM ? 4 : REG_SIZE) + r.offset;
+ (r.file == UNIFORM ? 4 : REG_SIZE) + r.offset +
+ (r.file == ARF || r.file == FIXED_GRF ? r.subnr : 0);
}
/**