Searched refs:Constants (Results 1 - 25 of 56) sorted by relevance

123

/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/
H A Dradeon_code.c47 dst->Constants = malloc(sizeof(struct rc_constant) * src->Count);
48 memcpy(dst->Constants, src->Constants, sizeof(struct rc_constant) * src->Count);
55 free(c->Constants);
71 memcpy(newlist, c->Constants, sizeof(struct rc_constant) * c->Count);
73 free(c->Constants);
74 c->Constants = newlist;
77 c->Constants[index] = *constant;
93 if (c->Constants[index].Type == RC_CONSTANT_STATE) {
94 if (c->Constants[inde
[all...]
H A Dradeon_remove_constants.c70 struct rc_constant *constants = c->Program.Constants.Constants;
74 if (!c->Program.Constants.Count) {
79 const_used = malloc(c->Program.Constants.Count);
80 memset(const_used, 0, c->Program.Constants.Count);
94 for (unsigned i = 0; i < c->Program.Constants.Count; i++)
101 remap_table = malloc(c->Program.Constants.Count * sizeof(unsigned));
102 inv_remap_table = malloc(c->Program.Constants.Count * sizeof(unsigned));
105 for (unsigned i = 0; i < c->Program.Constants.Count; i++) {
123 assert( is_identity || new_count < c->Program.Constants
[all...]
H A Dradeon_inline_literals.c118 &c->Program.Constants.Constants[src_reg->Index];
H A Dradeon_program.h165 struct rc_constant_list Constants; member in struct:rc_program
H A Dradeon_compiler.c49 rc_constants_destroy(&c->Program.Constants);
294 inst_mad->U.I.SrcReg[1].Index = rc_constants_add_state(&c->Program.Constants, RC_STATE_R300_VIEWPORT_SCALE, 0);
295 inst_mad->U.I.SrcReg[2].Index = rc_constants_add_state(&c->Program.Constants, RC_STATE_R300_VIEWPORT_OFFSET, 0);
298 inst_mad->U.I.SrcReg[2].Index = rc_constants_add_state(&c->Program.Constants, RC_STATE_R300_WINDOW_DIMENSION, 0);
500 if (c->Program.Constants.Count > c->max_constants) {
502 c->max_constants, c->Program.Constants.Count);
H A Dradeon_dataflow_swizzles.c411 reg->Index = rc_constants_add_immediate_vec4(&c->Program.Constants,
439 c->Program.Constants.Count < R300_PFS_NUM_CONST_REGS &&
447 rc_constants_print(&c->Program.Constants);
H A Dradeon_code.h88 struct rc_constant * Constants; member in struct:rc_constant_list
H A Dradeon_compiler_util.c711 c->Program.Constants.Constants[index].Type == RC_CONSTANT_IMMEDIATE;
726 if(swz >= 4 || index >= c->Program.Constants.Count ){
734 c->Program.Constants.Constants[index].u.Immediate[swz];
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/
H A Dradeon_code.c47 dst->Constants = malloc(sizeof(struct rc_constant) * src->Count);
48 memcpy(dst->Constants, src->Constants, sizeof(struct rc_constant) * src->Count);
55 free(c->Constants);
71 memcpy(newlist, c->Constants, sizeof(struct rc_constant) * c->Count);
73 free(c->Constants);
74 c->Constants = newlist;
77 c->Constants[index] = *constant;
93 if (c->Constants[index].Type == RC_CONSTANT_STATE) {
94 if (c->Constants[inde
[all...]
H A Dradeon_remove_constants.c70 struct rc_constant *constants = c->Program.Constants.Constants;
74 if (!c->Program.Constants.Count) {
79 const_used = malloc(c->Program.Constants.Count);
80 memset(const_used, 0, c->Program.Constants.Count);
94 for (unsigned i = 0; i < c->Program.Constants.Count; i++)
101 remap_table = malloc(c->Program.Constants.Count * sizeof(unsigned));
102 inv_remap_table = malloc(c->Program.Constants.Count * sizeof(unsigned));
105 for (unsigned i = 0; i < c->Program.Constants.Count; i++) {
123 assert( is_identity || new_count < c->Program.Constants
[all...]
H A Dradeon_inline_literals.c118 &c->Program.Constants.Constants[src_reg->Index];
H A Dradeon_program.h165 struct rc_constant_list Constants; member in struct:rc_program
H A Dradeon_compiler.c49 rc_constants_destroy(&c->Program.Constants);
294 inst_mad->U.I.SrcReg[1].Index = rc_constants_add_state(&c->Program.Constants, RC_STATE_R300_VIEWPORT_SCALE, 0);
295 inst_mad->U.I.SrcReg[2].Index = rc_constants_add_state(&c->Program.Constants, RC_STATE_R300_VIEWPORT_OFFSET, 0);
298 inst_mad->U.I.SrcReg[2].Index = rc_constants_add_state(&c->Program.Constants, RC_STATE_R300_WINDOW_DIMENSION, 0);
500 if (c->Program.Constants.Count > c->max_constants) {
502 c->max_constants, c->Program.Constants.Count);
H A Dradeon_dataflow_swizzles.c411 reg->Index = rc_constants_add_immediate_vec4(&c->Program.Constants,
439 c->Program.Constants.Count < R300_PFS_NUM_CONST_REGS &&
447 rc_constants_print(&c->Program.Constants);
H A Dradeon_code.h88 struct rc_constant * Constants; member in struct:rc_constant_list
H A Dradeon_compiler_util.c711 c->Program.Constants.Constants[index].Type == RC_CONSTANT_IMMEDIATE;
726 if(swz >= 4 || index >= c->Program.Constants.Count ){
734 c->Program.Constants.Constants[index].u.Immediate[swz];
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/compiler/tests/
H A Dradeon_compiler_optimize_tests.c63 rc_constants_add_immediate_vec4(&c.Program.Constants, const0);
H A Drc_test_helpers.c478 constants = &c->Program.Constants;
485 if (constants->Constants) {
486 memcpy(newlist, constants->Constants,
489 free(constants->Constants);
492 constants->Constants = newlist;
499 constants->Constants[index] = constant;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/compiler/tests/
H A Dradeon_compiler_optimize_tests.c63 rc_constants_add_immediate_vec4(&c.Program.Constants, const0);
H A Drc_test_helpers.c478 constants = &c->Program.Constants;
485 if (constants->Constants) {
486 memcpy(newlist, constants->Constants,
489 free(constants->Constants);
492 constants->Constants = newlist;
499 constants->Constants[index] = constant;
/xsrc/external/mit/MesaLib.old/dist/src/gallium/drivers/r300/
H A Dr300_vs.c248 if (compiler.Base.Program.Constants.Count > 200) {
279 vs->code.constants.Constants[i].Type == RC_CONSTANT_EXTERNAL; i++) {
283 assert(vs->code.constants.Constants[i].Type == RC_CONSTANT_IMMEDIATE);
H A Dr300_tgsi_to_rc.c298 rc_constants_add(&ttr->compiler->Program.Constants, &constant);
321 rc_constants_add(&ttr->compiler->Program.Constants, &constant);
324 ttr->immediate_offset = ttr->compiler->Program.Constants.Count;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/d3d12/
H A Dd3d12_root_signature.cpp67 param->Constants.RegisterSpace = 0;
68 param->Constants.ShaderRegister = reg;
69 param->Constants.Num32BitValues = size;
/xsrc/external/mit/MesaLib/dist/src/gallium/drivers/r300/
H A Dr300_vs.c248 if (compiler.Base.Program.Constants.Count > 200) {
279 vs->code.constants.Constants[i].Type == RC_CONSTANT_EXTERNAL; i++) {
283 assert(vs->code.constants.Constants[i].Type == RC_CONSTANT_IMMEDIATE);
H A Dr300_tgsi_to_rc.c321 rc_constants_add(&ttr->compiler->Program.Constants, &constant);
344 rc_constants_add(&ttr->compiler->Program.Constants, &constant);
347 ttr->immediate_offset = ttr->compiler->Program.Constants.Count;

Completed in 30 milliseconds

123