浏览代码

r300g: move vborender context function to seperate file

r300g: Un-migrate r300_draw_render.

It'll make maintaining the SW TCL path easier.
tags/mesa_7_7_rc1
Maciej Cencora 16 年前
父节点
当前提交
6acb26eadf
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 4
    1
      src/gallium/drivers/r300/r300_render.c
  2. 2
    0
      src/gallium/drivers/r300/r300_render.h

+ 4
- 1
src/gallium/drivers/r300/r300_render.c 查看文件

@@ -20,6 +20,9 @@
* OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
* USE OR OTHER DEALINGS IN THE SOFTWARE. */

/* r300_render: Vertex and index buffer primitive emission. Contains both
* HW TCL fastpath rendering, and SW TCL Draw-assisted rendering. */

#include "draw/draw_context.h"
#include "draw/draw_vbuf.h"

@@ -38,7 +41,7 @@
/* r300_render: Vertex and index buffer primitive emission. */
#define R300_MAX_VBO_SIZE (1024 * 1024)

static uint32_t r300_translate_primitive(unsigned prim)
uint32_t r300_translate_primitive(unsigned prim)
{
switch (prim) {
case PIPE_PRIM_POINTS:

+ 2
- 0
src/gallium/drivers/r300/r300_render.h 查看文件

@@ -23,6 +23,8 @@
#ifndef R300_RENDER_H
#define R300_RENDER_H

uint32_t r300_translate_primitive(unsigned prim);

boolean r300_draw_range_elements(struct pipe_context* pipe,
struct pipe_buffer* indexBuffer,
unsigned indexSize,

正在加载...
取消
保存