projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
vl: use a template for create_video_decoder
[mesa.git]
/
src
/
gallium
/
auxiliary
/
rbug
/
rbug_texture.c
diff --git
a/src/gallium/auxiliary/rbug/rbug_texture.c
b/src/gallium/auxiliary/rbug/rbug_texture.c
index 5a918fe6bc00aa81ff28a1a2c27479b2e796e5ca..ca051473504e3325d1b3085a2f96b511e859dc1a 100644
(file)
--- a/
src/gallium/auxiliary/rbug/rbug_texture.c
+++ b/
src/gallium/auxiliary/rbug/rbug_texture.c
@@
-35,7
+35,7
@@
*/
#include "rbug_internal.h"
*/
#include "rbug_internal.h"
-#include "rbug
/rbug
_texture.h"
+#include "rbug_texture.h"
int rbug_send_texture_list(struct rbug_connection *__con,
uint32_t *__serial)
int rbug_send_texture_list(struct rbug_connection *__con,
uint32_t *__serial)
@@
-410,19
+410,13
@@
int rbug_send_texture_read_reply(struct rbug_connection *__con,
struct rbug_proto_texture_list * rbug_demarshal_texture_list(struct rbug_proto_header *header)
{
struct rbug_proto_texture_list * rbug_demarshal_texture_list(struct rbug_proto_header *header)
{
- uint32_t len = 0;
- uint32_t pos = 0;
- uint8_t *data = NULL;
struct rbug_proto_texture_list *ret;
if (!header)
return NULL;
struct rbug_proto_texture_list *ret;
if (!header)
return NULL;
- if (header->opcode != (int
16
_t)RBUG_OP_TEXTURE_LIST)
+ if (header->opcode != (int
32
_t)RBUG_OP_TEXTURE_LIST)
return NULL;
return NULL;
- pos = 0;
- len = header->length * 4;
- data = (uint8_t*)&header[1];
ret = MALLOC(sizeof(*ret));
if (!ret)
return NULL;
ret = MALLOC(sizeof(*ret));
if (!ret)
return NULL;
@@
-430,7
+424,6
@@
struct rbug_proto_texture_list * rbug_demarshal_texture_list(struct rbug_proto_h
ret->header.__message = header;
ret->header.opcode = header->opcode;
ret->header.__message = header;
ret->header.opcode = header->opcode;
-
return ret;
}
return ret;
}
@@
-443,7
+436,7
@@
struct rbug_proto_texture_info * rbug_demarshal_texture_info(struct rbug_proto_h
if (!header)
return NULL;
if (!header)
return NULL;
- if (header->opcode != (int
16
_t)RBUG_OP_TEXTURE_INFO)
+ if (header->opcode != (int
32
_t)RBUG_OP_TEXTURE_INFO)
return NULL;
pos = 0;
return NULL;
pos = 0;
@@
-470,7
+463,7
@@
struct rbug_proto_texture_write * rbug_demarshal_texture_write(struct rbug_proto
if (!header)
return NULL;
if (!header)
return NULL;
- if (header->opcode != (int
16
_t)RBUG_OP_TEXTURE_WRITE)
+ if (header->opcode != (int
32
_t)RBUG_OP_TEXTURE_WRITE)
return NULL;
pos = 0;
return NULL;
pos = 0;
@@
-506,7
+499,7
@@
struct rbug_proto_texture_read * rbug_demarshal_texture_read(struct rbug_proto_h
if (!header)
return NULL;
if (!header)
return NULL;
- if (header->opcode != (int
16
_t)RBUG_OP_TEXTURE_READ)
+ if (header->opcode != (int
32
_t)RBUG_OP_TEXTURE_READ)
return NULL;
pos = 0;
return NULL;
pos = 0;
@@
-540,7
+533,7
@@
struct rbug_proto_texture_list_reply * rbug_demarshal_texture_list_reply(struct
if (!header)
return NULL;
if (!header)
return NULL;
- if (header->opcode != (int
16
_t)RBUG_OP_TEXTURE_LIST_REPLY)
+ if (header->opcode != (int
32
_t)RBUG_OP_TEXTURE_LIST_REPLY)
return NULL;
pos = 0;
return NULL;
pos = 0;
@@
-568,7
+561,7
@@
struct rbug_proto_texture_info_reply * rbug_demarshal_texture_info_reply(struct
if (!header)
return NULL;
if (!header)
return NULL;
- if (header->opcode != (int
16
_t)RBUG_OP_TEXTURE_INFO_REPLY)
+ if (header->opcode != (int
32
_t)RBUG_OP_TEXTURE_INFO_REPLY)
return NULL;
pos = 0;
return NULL;
pos = 0;
@@
-606,7
+599,7
@@
struct rbug_proto_texture_read_reply * rbug_demarshal_texture_read_reply(struct
if (!header)
return NULL;
if (!header)
return NULL;
- if (header->opcode != (int
16
_t)RBUG_OP_TEXTURE_READ_REPLY)
+ if (header->opcode != (int
32
_t)RBUG_OP_TEXTURE_READ_REPLY)
return NULL;
pos = 0;
return NULL;
pos = 0;