Commit 458aa1b9 authored by Xiang, Haihao's avatar Xiang, Haihao

i965_drv_video/render: set surface base address

It is easy to fill the binding table without relocation and make sure
all offsets in binding table only uses bits[15:0]
Signed-off-by: default avatarXiang, Haihao <haihao.xiang@intel.com>
parent 7d46027c
This diff is collapsed.
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
#ifndef _I965_RENDER_H_ #ifndef _I965_RENDER_H_
#define _I965_RENDER_H_ #define _I965_RENDER_H_
#define MAX_RENDER_SURFACES 16
#define MAX_SAMPLERS 16 #define MAX_SAMPLERS 16
#define MAX_RENDER_SURFACES (MAX_SAMPLERS + 1)
#include "i965_post_processing.h" #include "i965_post_processing.h"
...@@ -50,9 +50,8 @@ struct i965_render_state ...@@ -50,9 +50,8 @@ struct i965_render_state
struct { struct {
int sampler_count; int sampler_count;
dri_bo *sampler; dri_bo *sampler;
dri_bo *surface[MAX_RENDER_SURFACES];
dri_bo *binding_table;
dri_bo *state; dri_bo *state;
dri_bo *surface_state_binding_table_bo;
} wm; } wm;
struct { struct {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment