search for: p_result

Displaying 6 results from an estimated 6 matches for "p_result".

Did you mean: _result
2010 Mar 03
1
Help with multtest (rawp2adjp)
Hello R experts, I am trying to analyze this dataset and am stuck on this problem for quite some time now. I am using mt.rawp2adjp. the output that came out was a matrix with two colums since I had asked it to calculate the adjusted p values using one method. so it has the two columns as: rawp BH I combined these using cbind with my actual dataframe. checked using head all was fine. thereafter I
2013 Nov 26
1
dynamic lists at C level
...in R, but at C level. In R, that would be rather trivial: - determine the length of the list - create the list object - store the values for each component - access value components by using "[[" At C level, for a single component where I need to store a vector of length 5, I do: int *p_result; SEXP my_list = PROTECT(allocVector(VECSXP, 1)); SEXP result = SET_VECTOR_ELT(my_list, 0, allocVector(INTSXP, 5)); p_result = INTEGER(result); The number "1" (the length of "my_list") is dynamic, however. Is there a web reference where I could do some further reading on this t...
2009 Sep 12
0
[PATCH 09/13] nv50: move allocation of pc regs
...if (pc->result_nr) { - unsigned nr = pc->result_nr * 4; - int rid = 0; - - pc->result = MALLOC(nr * sizeof(struct nv50_reg)); - if (!pc->result) - goto out_err; - if (pc->p->type == PIPE_SHADER_VERTEX) { - for (i = 0; i < nr; i++) - ctor_reg(&pc->result[i], P_RESULT, i / 4, i); + for (i = 0; i < pc->result_nr * 4; i++) + pc->result[i].hw = i; } else { - /* pc->p->type == PIPE_SHADER_FRAGMENT */ - for (i = 0; i < pc->result_nr; i++) { - for (c = 0; c < 4; c++) { - ctor_reg(&pc->result[i*4+c], - P_TEMP, i,...
2009 Jun 21
0
[PATCH] nv50: update comments
...D, but MUL+SUB - * - Fuck it off, introduce a way to negate args for ops that - * support it. - * - * Look into inlining IMMD for ops other than MOV (make it general?) + * Look into inlining IMMD for ops other than MOV (make it general ?) * - Maybe even relax restrictions a bit, can't do P_RESULT + P_IMMD, - * but can emit to P_TEMP first - then MOV later. NVIDIA does this + * but can emit to P_TEMP first - then MOV later. NVIDIA does this. * * In ops such as ADD it's possible to construct a bad opcode in the !is_long() * case, if the emit_src() causes the inst to suddenly b...
2009 Jun 21
0
[PATCH] nv50: add support for two-sided lighting
...->p->cfg.fp.high_map = mid; } else { /* vertex program */ for (i = 0; i < pc->attr_nr; i++) { @@ -2011,6 +2025,10 @@ nv50_program_tx_prep(struct nv50_pc *pc) if (pc->p->type == PIPE_SHADER_VERTEX) { for (i = 0; i < nr; i++) ctor_reg(&pc->result[i], P_RESULT, i / 4, i); + + /* output id offset bcol from fcol */ + if (bcol[0] != 0xffff) + pc->p->cfg.vp.bcol = bcol[0] - fcol[0]; } else { /* pc->p->type == PIPE_SHADER_FRAGMENT */ for (i = 0; i < pc->result_nr; i++) { @@ -2101,7 +2119,7 @@ ctor_nv50_pc(struct nv50_pc *pc...
2009 May 06
2
nv50: shader generation patches
Hi ! I've been trying to improve NV50 shader generation a bit the last couple of weeks, so here is what I've produced. I don't know if it's usable for you or just a pile of horrible hacks, but at least it makes some mesa demos render more correcly, p.e. the teapot (aside from mip-mapping issues of the floor texture), arbfplight, and I think the gears also didn't appear as they