Displaying 20 results from an estimated 24 matches for "rinput".
Did you mean:
input
2016 Feb 22
2
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...following bit of
>> TGSI code:
>>
>> COMP
>> DCL SV[0], THREAD_ID[0]
>> DCL TEMP[0], LOCAL
>> DCL TEMP[1], LOCAL
>> IMM UINT32 { 8, 0, 0, 0 }
>>
>> BGNSUB\n"
>> UMUL TEMP[0], SV[0], IMM[0]
>> LOAD TEMP[1].xy, RINPUT, TEMP[0]
>> LOAD TEMP[0].x, RGLOBAL, TEMP[1].yyyy
>> UADD TEMP[1].x, TEMP[0], -TEMP[1]
>> STORE RGLOBAL.x, TEMP[1].yyyy, TEMP[1]
>> RET
>> ENDSUB
>>
>>
>> Where by RINPUT and RGLOBAL get replaces by processing the
&...
2016 Feb 22
4
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...>>> DCL SV[0], THREAD_ID[0]
>>>> DCL TEMP[0], LOCAL
>>>> DCL TEMP[1], LOCAL
>>>> IMM UINT32 { 8, 0, 0, 0 }
>>>>
>>>> BGNSUB\n"
>>>> UMUL TEMP[0], SV[0], IMM[0]
>>>> LOAD TEMP[1].xy, RINPUT, TEMP[0]
>>>> LOAD TEMP[0].x, RGLOBAL, TEMP[1].yyyy
>>>> UADD TEMP[1].x, TEMP[0], -TEMP[1]
>>>> STORE RGLOBAL.x, TEMP[1].yyyy, TEMP[1]
>>>> RET
>>>> ENDSUB
>>>>
>>>>
>>>&...
2003 Dec 09
1
R Interface handholding
...llo,
I need a bit of handholding with R, specifically, with writing
packages for it. I'm a systems programmer, and am, on the request
of several users of our software, working on generating R interfaces.
For starters, I've written the following R function (which compiles):
SEXP myincr(SEXP Rinput)
{ // Returns input integer incremented by one
int input;
SEXP returner;
PROTECT(Rinput = AS_NUMERIC(Rinput));
input = * INTEGER(Rinput);
input++;
PROTECT(returner = NEW_INTEGER(input));
Rprintf("Hey there\n");
return returner;
}
I've made this into a package, by dropping it into a...
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...AD_ID[0]
>>>>> DCL TEMP[0], LOCAL
>>>>> DCL TEMP[1], LOCAL
>>>>> IMM UINT32 { 8, 0, 0, 0 }
>>>>>
>>>>> BGNSUB\n"
>>>>> UMUL TEMP[0], SV[0], IMM[0]
>>>>> LOAD TEMP[1].xy, RINPUT, TEMP[0]
>>>>> LOAD TEMP[0].x, RGLOBAL, TEMP[1].yyyy
>>>>> UADD TEMP[1].x, TEMP[0], -TEMP[1]
>>>>> STORE RGLOBAL.x, TEMP[1].yyyy, TEMP[1]
>>>>> RET
>>>>> ENDSUB
>>>>>
>&g...
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...AD_ID[0]
>>>>> DCL TEMP[0], LOCAL
>>>>> DCL TEMP[1], LOCAL
>>>>> IMM UINT32 { 8, 0, 0, 0 }
>>>>>
>>>>> BGNSUB\n"
>>>>> UMUL TEMP[0], SV[0], IMM[0]
>>>>> LOAD TEMP[1].xy, RINPUT, TEMP[0]
>>>>> LOAD TEMP[0].x, RGLOBAL, TEMP[1].yyyy
>>>>> UADD TEMP[1].x, TEMP[0], -TEMP[1]
>>>>> STORE RGLOBAL.x, TEMP[1].yyyy, TEMP[1]
>>>>> RET
>>>>> ENDSUB
>>>>>
>&g...
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...;>>
>>> COMP
>>> DCL SV[0], THREAD_ID[0]
>>> DCL TEMP[0], LOCAL
>>> DCL TEMP[1], LOCAL
>>> IMM UINT32 { 8, 0, 0, 0 }
>>>
>>> BGNSUB\n"
>>> UMUL TEMP[0], SV[0], IMM[0]
>>> LOAD TEMP[1].xy, RINPUT, TEMP[0]
>>> LOAD TEMP[0].x, RGLOBAL, TEMP[1].yyyy
>>> UADD TEMP[1].x, TEMP[0], -TEMP[1]
>>> STORE RGLOBAL.x, TEMP[1].yyyy, TEMP[1]
>>> RET
>>> ENDSUB
>>>
>>>
>>> Where by RINPUT and RGLOBAL...
2016 Feb 22
2
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...nd if necessary clover) to start to
work again.
Currently the test_input_global() test uses the following bit of
TGSI code:
COMP
DCL SV[0], THREAD_ID[0]
DCL TEMP[0], LOCAL
DCL TEMP[1], LOCAL
IMM UINT32 { 8, 0, 0, 0 }
BGNSUB\n"
UMUL TEMP[0], SV[0], IMM[0]
LOAD TEMP[1].xy, RINPUT, TEMP[0]
LOAD TEMP[0].x, RGLOBAL, TEMP[1].yyyy
UADD TEMP[1].x, TEMP[0], -TEMP[1]
STORE RGLOBAL.x, TEMP[1].yyyy, TEMP[1]
RET
ENDSUB
Where by RINPUT and RGLOBAL get replaces by processing the
code with cpp and the following defines:
#define RGLOBAL RES[32...
2016 Jan 12
1
Some llvm questions (for tgsi backend)
...would look like this:
>>
>> COMP
>> DCL SV[0], THREAD_ID[0]
>> DCL TEMP[0], LOCAL
>> DCL TEMP[1], LOCAL
>> IMM UINT32 { 0, 0, 0, 0 }
>> IMM UINT32 { 4, 0, 0, 0 }
>> IMM UINT32 { 128, 0, 0, 0 }
>>
>> BGNSUB
>> LOAD TEMP[0].xy, RINPUT, IMM[0]
>> UMUL TEMP[1].x, SV[0], IMM[1]
>> UADD TEMP[0].x, TEMP[0], TEMP[1]
>> UMUL TEMP[1].x, SV[0], IMM[2]
>> UADD TEMP[0].y, TEMP[0], TEMP[1].xxxx
>> LOAD TEMP[1].x, RGLOBAL, TEMP[0]
>> LOAD TEMP[0].x, RGLOBAL,...
2016 Jan 11
4
Some llvm questions (for tgsi backend)
...x, TEMP1z
STOREgis [TEMP1y], TEMP1x
RET
ENDSUB
Working tgsi for this would look like this:
COMP
DCL SV[0], THREAD_ID[0]
DCL TEMP[0], LOCAL
DCL TEMP[1], LOCAL
IMM UINT32 { 0, 0, 0, 0 }
IMM UINT32 { 4, 0, 0, 0 }
IMM UINT32 { 128, 0, 0, 0 }
BGNSUB
LOAD TEMP[0].xy, RINPUT, IMM[0]
UMUL TEMP[1].x, SV[0], IMM[1]
UADD TEMP[0].x, TEMP[0], TEMP[1]
UMUL TEMP[1].x, SV[0], IMM[2]
UADD TEMP[0].y, TEMP[0], TEMP[1].xxxx
LOAD TEMP[1].x, RGLOBAL, TEMP[0]
LOAD TEMP[0].x, RGLOBAL, TEMP[0].yyyy
UADD TEMP[1].x, TEMP[0], -TEMP[1]...
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...ently the test_input_global() test uses the following bit of
> TGSI code:
>
> COMP
> DCL SV[0], THREAD_ID[0]
> DCL TEMP[0], LOCAL
> DCL TEMP[1], LOCAL
> IMM UINT32 { 8, 0, 0, 0 }
>
> BGNSUB\n"
> UMUL TEMP[0], SV[0], IMM[0]
> LOAD TEMP[1].xy, RINPUT, TEMP[0]
> LOAD TEMP[0].x, RGLOBAL, TEMP[1].yyyy
> UADD TEMP[1].x, TEMP[0], -TEMP[1]
> STORE RGLOBAL.x, TEMP[1].yyyy, TEMP[1]
> RET
> ENDSUB
>
>
> Where by RINPUT and RGLOBAL get replaces by processing the
> code with cpp and the follow...
2005 Oct 12
1
running JPEG device on R 1.9.1 using xvfb-run on Linux
Hi there,
Does anybody have experience in running jpeg device using xvfb-run on
linux? I've been having sporadic problem with: /usr/X11/bin/xvfb-run
/usr/bin/R --no-save < Rinput.txt, with error saying: error in X11
connection. Especially when I run it from a perl script.
Is there a better way of doing this? or how can I fix the problem.
Thanks in advance!
David
[[alternative HTML version deleted]]
2016 Feb 22
4
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...t the second dim when
>> it's 0.) You don't even have to load these, you can use them as args
>> directly anywhere you like (except as indirect addresses).
>>
>> The old code would actually take the supplied inputs, stick them into
>> a constbuf, and then lower RINPUT accesses to load from that constbuf.
>> I'm suggesting we cut out the middleman.
>>
>> By the way, another term for "constant buffer" is "uniform buffer", on
>> the off chance it helps. Basically it's super-cached by the shader for
>> values...
2016 Jan 11
0
Some llvm questions (for tgsi backend)
...ENDSUB
>
> Working tgsi for this would look like this:
>
> COMP
> DCL SV[0], THREAD_ID[0]
> DCL TEMP[0], LOCAL
> DCL TEMP[1], LOCAL
> IMM UINT32 { 0, 0, 0, 0 }
> IMM UINT32 { 4, 0, 0, 0 }
> IMM UINT32 { 128, 0, 0, 0 }
>
> BGNSUB
> LOAD TEMP[0].xy, RINPUT, IMM[0]
> UMUL TEMP[1].x, SV[0], IMM[1]
> UADD TEMP[0].x, TEMP[0], TEMP[1]
> UMUL TEMP[1].x, SV[0], IMM[2]
> UADD TEMP[0].y, TEMP[0], TEMP[1].xxxx
> LOAD TEMP[1].x, RGLOBAL, TEMP[0]
> LOAD TEMP[0].x, RGLOBAL, TEMP[0].yyyy
> UADD...
2016 Jan 11
0
Some llvm questions (for tgsi backend)
...ENDSUB
>
> Working tgsi for this would look like this:
>
> COMP
> DCL SV[0], THREAD_ID[0]
> DCL TEMP[0], LOCAL
> DCL TEMP[1], LOCAL
> IMM UINT32 { 0, 0, 0, 0 }
> IMM UINT32 { 4, 0, 0, 0 }
> IMM UINT32 { 128, 0, 0, 0 }
>
> BGNSUB
> LOAD TEMP[0].xy, RINPUT, IMM[0]
> UMUL TEMP[1].x, SV[0], IMM[1]
> UADD TEMP[0].x, TEMP[0], TEMP[1]
> UMUL TEMP[1].x, SV[0], IMM[2]
> UADD TEMP[0].y, TEMP[0], TEMP[1].xxxx
> LOAD TEMP[1].x, RGLOBAL, TEMP[0]
> LOAD TEMP[0].x, RGLOBAL, TEMP[0].yyyy
> UADD...
2016 Feb 19
2
Dealing with opencl kernel parameters in nouveau now that RES support is gone
Hi,
On 18-02-16 17:39, Ilia Mirkin wrote:
> On Thu, Feb 18, 2016 at 9:45 AM, Hans de Goede <hdegoede at redhat.com> wrote:
>> But this does not seem to be hooked up yet for nouveau.
>
> Samuel has patches. See
> https://cgit.freedesktop.org/~hakzsam/mesa/log/?h=arb_compute_shader_v3
Cool, I will take a look at those.
>> So some questions:
>> -The commit by
2016 Feb 22
2
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...[0], CONST[0][1], etc -- it doesn't print the second dim when
it's 0.) You don't even have to load these, you can use them as args
directly anywhere you like (except as indirect addresses).
The old code would actually take the supplied inputs, stick them into
a constbuf, and then lower RINPUT accesses to load from that constbuf.
I'm suggesting we cut out the middleman.
By the way, another term for "constant buffer" is "uniform buffer", on
the off chance it helps. Basically it's super-cached by the shader for
values that never change across shader invocations...
2016 Feb 22
2
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...t's 0.) You don't even have to load these, you can use them as args
>>>> directly anywhere you like (except as indirect addresses).
>>>>
>>>> The old code would actually take the supplied inputs, stick them into
>>>> a constbuf, and then lower RINPUT accesses to load from that constbuf.
>>>> I'm suggesting we cut out the middleman.
>>>>
>>>> By the way, another term for "constant buffer" is "uniform buffer", on
>>>> the off chance it helps. Basically it's super-cached b...
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...don't even have to load these, you can use them as
> >> args
> >> directly anywhere you like (except as indirect addresses).
> >>
> >> The old code would actually take the supplied inputs, stick them
> >> into
> >> a constbuf, and then lower RINPUT accesses to load from that
> >> constbuf.
> >> I'm suggesting we cut out the middleman.
> >>
> >> By the way, another term for "constant buffer" is "uniform
> >> buffer", on
> >> the off chance it helps. Basically it'...
2016 Feb 22
0
Dealing with opencl kernel parameters in nouveau now that RES support is gone
...n
>>> it's 0.) You don't even have to load these, you can use them as args
>>> directly anywhere you like (except as indirect addresses).
>>>
>>> The old code would actually take the supplied inputs, stick them into
>>> a constbuf, and then lower RINPUT accesses to load from that constbuf.
>>> I'm suggesting we cut out the middleman.
>>>
>>> By the way, another term for "constant buffer" is "uniform buffer", on
>>> the off chance it helps. Basically it's super-cached by the shader for...
2015 Dec 22
0
Translating tests/trivial/compute.c gallium tests to opencl (input / help wanted)
...D TEMP[0].xy, TEMP[0].xyxy, TEMP[0].zwzw\n"
" UADD TEMP[0].x, TEMP[0].xxxx, TEMP[0].yyyy\n"
" UMUL TEMP[0].x, TEMP[0], IMM[0]\n"
- " STORE RES[0].xyzw, TEMP[0], SV[0]\n"
+ " LOAD TEMP[1].x, RINPUT, IMM[2]\n"
+ " UADD TEMP[0].x, TEMP[0], TEMP[1]\n"
+ " STORE RGLOBAL.xyzw, TEMP[0], SV[0]\n"
" UADD TEMP[0].x, TEMP[0], IMM[1]\n"
- " STORE RES[0].xyzw, TEMP[0], SV[1]\n"
+...