projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e7c40f
)
i965/vs: Add a new dst_reg constructor for file, number, type, and mask.
author
Kenneth Graunke
<kenneth@whitecape.org>
Fri, 28 Oct 2011 04:45:12 +0000
(21:45 -0700)
committer
Kenneth Graunke
<kenneth@whitecape.org>
Sun, 18 Dec 2011 20:39:00 +0000
(12:39 -0800)
This will be especially useful for loading texturing parameters, where I
need to (for example) reference m3.xz<D>.
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/brw_vec4.h
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_vec4.h
b/src/mesa/drivers/dri/i965/brw_vec4.h
index eb90253543ed622e6e078f256f25cf2ca727c3d5..5bf802787bad95d0e4916c3b29ba26afba17e3d6 100644
(file)
--- a/
src/mesa/drivers/dri/i965/brw_vec4.h
+++ b/
src/mesa/drivers/dri/i965/brw_vec4.h
@@
-210,6
+210,16
@@
public:
this->reg = reg;
}
+ dst_reg(register_file file, int reg, const glsl_type *type, int writemask)
+ {
+ init();
+
+ this->file = file;
+ this->reg = reg;
+ this->type = brw_type_for_base_type(type);
+ this->writemask = writemask;
+ }
+
dst_reg(struct brw_reg reg)
{
init();