About glTexDirectVIVMap() in i.MX6DQ.

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

About glTexDirectVIVMap() in i.MX6DQ.

跳至解决方案
3,540 次查看
keitanagashima
Senior Contributor I

Dear All,

Hello.

When transferring an image to the texture which was created by using glTexDirectVIV(), DMA can transfer it by using glTexDirectVIVMap().

When using a texture and rendering a polygon, the contents of the texture are always updated (i.e.using DMA transfer), in case of calling glTexDirectVIVMap() and DMA transfer's being set.

(When setting a camera image by the DMA transfer in glTexDirectVIVMap(), after that, the contents of the texture are always updated.)

[Question]

Is there a way of not making always update the contents of the texture?

BSP : L3.14.28_1.0.0

Best Regards,

Keita

标签 (4)
0 项奖励
回复
1 解答
1,790 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Keita,

Are you using glTexDirectInvalidateVIV ?

glTexDirectVIV() − Driver reserves memory for texture, and return pointer

glTexDirectVIVMap() − User reserves logical (and physical) continuous memory, then driver map the memory as a texture memory.

glTexDirectInvalidateVIV() − Tell GPU texture memory is updated

One example could be:

First, call glTexDirectVIV to get a pointer.

Second, copy the texture data to this memory address

Then, call glTexDirectInvalidateVIV to apply the texture before you draw something with that texture

Hope this helps

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,791 次查看
Bio_TICFSL
NXP TechSupport
NXP TechSupport

Hi Keita,

Are you using glTexDirectInvalidateVIV ?

glTexDirectVIV() − Driver reserves memory for texture, and return pointer

glTexDirectVIVMap() − User reserves logical (and physical) continuous memory, then driver map the memory as a texture memory.

glTexDirectInvalidateVIV() − Tell GPU texture memory is updated

One example could be:

First, call glTexDirectVIV to get a pointer.

Second, copy the texture data to this memory address

Then, call glTexDirectInvalidateVIV to apply the texture before you draw something with that texture

Hope this helps

0 项奖励
回复
1,790 次查看
philbot999
Contributor I

Hi All,

This thread seems to discuss exactly what I want to accomplish - direct V4L2 video buffers to OpenGL Textures via DMA.

Is there any simple, yet complete, example application in the imx BSP?

Thank you very much,

Phil

0 项奖励
回复